projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61a6bd8
)
x86/APM: Fix build warning when PROC_FS is not enabled
author
Randy Dunlap
<
[email protected]
>
Fri, 14 Sep 2018 22:10:29 +0000
(15:10 -0700)
committer
Thomas Gleixner
<
[email protected]
>
Sat, 15 Sep 2018 08:16:25 +0000
(10:16 +0200)
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 <
[email protected]
>
Signed-off-by: Thomas Gleixner <
[email protected]
>
Reviewed-by: Christoph Hellwig <
[email protected]
>
Cc: Jiri Kosina <
[email protected]
>
Link:
https://lkml.kernel.org/r/
[email protected]
arch/x86/kernel/apm_32.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/apm_32.c
b/arch/x86/kernel/apm_32.c
index ec00d1ff5098b3701b1f1af324be2576676b7786..f7151cd03cb08145a5c596d28c676abaf8e1f1bf 100644
(file)
--- 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)
return 0;
}
+#ifdef CONFIG_PROC_FS
static int proc_apm_show(struct seq_file *m, void *v)
{
unsigned short bx;
@@
-1719,6
+1720,7
@@
static int proc_apm_show(struct seq_file *m, void *v)
units);
return 0;
}
+#endif
static int apm(void *unused)
{