suppress warning fs/quota/dquot.c:135: ‘quotatypes’ defined but not used
PATCH 1/1 suppress warning fs/quota/dquot.c:135: ‘quotatypes’ defined but not used
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 <[email protected]>
---
fs/quota/dquot.c +4 -1
@@ -132,7 +132,10 @@ static __cacheline_aligned_in_smp DEFINE_SPINLOCK(dq_state__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 f static struct quota_module_name module_names[] = INIT_QUOTA_MODULE_NAMES;