diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2018-09-14 18:10:29 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-09-15 04:16:25 -0400 |
commit | 002b87d2aace62b4f3841c3aa43309d2380092be (patch) | |
tree | 96f424433d8be906bf9c7b578a243cd14a8dd622 | |
parent | 61a6bd83abf2f14b2a917b6a0279c88d299267af (diff) |
x86/APM: Fix build warning when PROC_FS is not enabled
Fix build warning in apm_32.c when CONFIG_PROC_FS is not enabled:
../arch/x86/kernel/apm_32.c:1643:12: warning: 'proc_apm_show' defined but not used [-Wunused-function]
static int proc_apm_show(struct seq_file *m, void *v)
Fixes: 3f3942aca6da ("proc: introduce proc_create_single{,_data}")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Jiri Kosina <jikos@kernel.org>
Link: https://lkml.kernel.org/r/be39ac12-44c2-4715-247f-4dcc3c525b8b@infradead.org
-rw-r--r-- | arch/x86/kernel/apm_32.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/apm_32.c b/arch/x86/kernel/apm_32.c index ec00d1ff5098..f7151cd03cb0 100644 --- a/arch/x86/kernel/apm_32.c +++ b/arch/x86/kernel/apm_32.c | |||
@@ -1640,6 +1640,7 @@ static int do_open(struct inode *inode, struct file *filp) | |||
1640 | return 0; | 1640 | return 0; |
1641 | } | 1641 | } |
1642 | 1642 | ||
1643 | #ifdef CONFIG_PROC_FS | ||
1643 | static int proc_apm_show(struct seq_file *m, void *v) | 1644 | static int proc_apm_show(struct seq_file *m, void *v) |
1644 | { | 1645 | { |
1645 | unsigned short bx; | 1646 | unsigned short bx; |
@@ -1719,6 +1720,7 @@ static int proc_apm_show(struct seq_file *m, void *v) | |||
1719 | units); | 1720 | units); |
1720 | return 0; | 1721 | return 0; |
1721 | } | 1722 | } |
1723 | #endif | ||
1722 | 1724 | ||
1723 | static int apm(void *unused) | 1725 | static int apm(void *unused) |
1724 | { | 1726 | { |