diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-01-27 10:57:18 -0500 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-02-23 21:27:02 -0500 |
commit | 28558f5af50d8335cbbc8bc2726e0747553e29f5 (patch) | |
tree | 6db5859d599db52f4dc6cfc69cf99a541b7fcafd | |
parent | 120f83f8d6f2e2e7dea3570646722c62ecee70b0 (diff) |
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>
-rw-r--r-- | drivers/message/fusion/mptbase.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index 5dcc0313c38a..207370d68c17 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c | |||
@@ -6848,6 +6848,7 @@ mpt_print_ioc_summary(MPT_ADAPTER *ioc, char *buffer, int *size, int len, int sh | |||
6848 | *size = y; | 6848 | *size = y; |
6849 | } | 6849 | } |
6850 | 6850 | ||
6851 | #ifdef CONFIG_PROC_FS | ||
6851 | static void seq_mpt_print_ioc_summary(MPT_ADAPTER *ioc, struct seq_file *m, int showlan) | 6852 | static void seq_mpt_print_ioc_summary(MPT_ADAPTER *ioc, struct seq_file *m, int showlan) |
6852 | { | 6853 | { |
6853 | char expVer[32]; | 6854 | char expVer[32]; |
@@ -6879,6 +6880,7 @@ static void seq_mpt_print_ioc_summary(MPT_ADAPTER *ioc, struct seq_file *m, int | |||
6879 | 6880 | ||
6880 | seq_putc(m, '\n'); | 6881 | seq_putc(m, '\n'); |
6881 | } | 6882 | } |
6883 | #endif | ||
6882 | 6884 | ||
6883 | /** | 6885 | /** |
6884 | * mpt_set_taskmgmt_in_progress_flag - set flags associated with task management | 6886 | * mpt_set_taskmgmt_in_progress_flag - set flags associated with task management |