suppress warning: "quotatypes" defined but not used
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Mon, 26 Apr 2010 10:09:26 +0000 (12:09 +0200)
committerJan Kara <jack@suse.cz>
Fri, 21 May 2010 17:30:41 +0000 (19:30 +0200)
Suppress compilation warning: "quotatypes" defined but not used.
quotatypes is used only when CONFIG_QUOTA_DEBUG or CONFIG_PRINT_QUOTA_WARNING
is/are defined.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/dquot.c

index 05c590e10ac21dce7e1796531dbda1ea7d64eb11..ae766056350d181bbc83718372d1928313160682 100644 (file)
@@ -132,7 +132,9 @@ static __cacheline_aligned_in_smp DEFINE_SPINLOCK(dq_state_lock);
 __cacheline_aligned_in_smp DEFINE_SPINLOCK(dq_data_lock);
 EXPORT_SYMBOL(dq_data_lock);
 
+#if defined(CONFIG_QUOTA_DEBUG) || defined(CONFIG_PRINT_QUOTA_WARNING)
 static char *quotatypes[] = INITQFNAMES;
+#endif
 static struct quota_format_type *quota_formats;        /* List of registered formats */
 static struct quota_module_name module_names[] = INIT_QUOTA_MODULE_NAMES;