OSDN Git Service

mptfusion: hide unused seq_mpt_print_ioc_summary function
authorArnd Bergmann <arnd@arndb.de>
Wed, 27 Jan 2016 15:57:18 +0000 (16:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Feb 2018 10:03:45 +0000 (11:03 +0100)
commita125eb8bec000ed4252be4f7ede74508b3f3ca9e
treef950bc7ad687f1b885f63fb77404ed5e67b4eaf2
parent7f0fb06c9626e4a8607577d71e95f3d6f2bde44d
mptfusion: hide unused seq_mpt_print_ioc_summary function

commit 28558f5af50d8335cbbc8bc2726e0747553e29f5 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/message/fusion/mptbase.c