]> git.baikalelectronics.ru Git - kernel.git/commit
x86/APM: Fix build warning when PROC_FS is not enabled
authorRandy Dunlap <rdunlap@infradead.org>
Fri, 14 Sep 2018 22:10:29 +0000 (15:10 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 15 Sep 2018 08:16:25 +0000 (10:16 +0200)
commit6f6992b3570f9d4bcbbe827ba61437145bd0f739
tree96f424433d8be906bf9c7b578a243cd14a8dd622
parentf76d3b9769ed5f9f91ab7421fbd8cc1b9294835f
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: eb0b95881bb2 ("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
arch/x86/kernel/apm_32.c