Skip to content

Commit 002b87d

Browse files
rddunlapKAGA-KOKO
authored andcommitted
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: 3f3942a ("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
1 parent 61a6bd8 commit 002b87d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/kernel/apm_32.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,6 +1640,7 @@ static int do_open(struct inode *inode, struct file *filp)
16401640
return 0;
16411641
}
16421642

1643+
#ifdef CONFIG_PROC_FS
16431644
static int proc_apm_show(struct seq_file *m, void *v)
16441645
{
16451646
unsigned short bx;
@@ -1719,6 +1720,7 @@ static int proc_apm_show(struct seq_file *m, void *v)
17191720
units);
17201721
return 0;
17211722
}
1723+
#endif
17221724

17231725
static int apm(void *unused)
17241726
{

0 commit comments

Comments
 (0)