]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Feb 2016 02:27:02 +0000 (21:27 -0500)
commit2b79590718b48876c0a26d96c84ec5af5378a618
tree6db5859d599db52f4dc6cfc69cf99a541b7fcafd
parentc258b5c7fc8a37c09c5cc498d32130c7e0562d85
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>
drivers/message/fusion/mptbase.c