Prev: [ARM] .gitignore: Ignore piggy.lzo, lib1funcs.S and vmlinux
Next: patch md-raid5-allow-for-more-than-2-31-chunks.patch added to 2.6.33-stable tree
From: Sergey Senozhatsky on 23 Apr 2010 07:10 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(a)gmail.com> --- diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index 788b580..109cb39 100644 --- a/fs/quota/dquot.c +++ b/fs/quota/dquot.c @@ -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); -static char *quotatypes[] = INITQFNAMES; +#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; |