Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mptfusion: hide unused seq_mpt_print_ioc_summary function

The seq_mpt_print_ioc_summary function is used for the
/proc/mpt/iocN/summary implementation and never gets called when
CONFIG_PROC_FS is disabled:

drivers/message/fusion/mptbase.c:6851:13: warning: 'seq_mpt_print_ioc_summary' defined but not used [-Wunused-function]
static void seq_mpt_print_ioc_summary(MPT_ADAPTER *ioc, struct seq_file *m, int showlan)

This adds an #ifdef to hide the function definition in that case and
avoid the warning.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Arnd Bergmann and committed by
Martin K. Petersen
28558f5a 120f83f8

+2
+2
drivers/message/fusion/mptbase.c
··· 6848 6848 *size = y; 6849 6849 } 6850 6850 6851 + #ifdef CONFIG_PROC_FS 6851 6852 static void seq_mpt_print_ioc_summary(MPT_ADAPTER *ioc, struct seq_file *m, int showlan) 6852 6853 { 6853 6854 char expVer[32]; ··· 6880 6879 6881 6880 seq_putc(m, '\n'); 6882 6881 } 6882 + #endif 6883 6883 6884 6884 /** 6885 6885 * mpt_set_taskmgmt_in_progress_flag - set flags associated with task management