提交 9f35b818 编写于 作者: H Heiko Carstens 提交者: Martin Schwidefsky

s390/sysinfo: add missing #ifdef CONFIG_PROC_FS

Get rid of this compile warning for !PROC_FS:

  CC      arch/s390/kernel/sysinfo.o
arch/s390/kernel/sysinfo.c:275:12: warning: 'sysinfo_show' defined but not used [-Wunused-function]
 static int sysinfo_show(struct seq_file *m, void *v)
Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 d053d639
...@@ -59,6 +59,8 @@ int stsi(void *sysinfo, int fc, int sel1, int sel2) ...@@ -59,6 +59,8 @@ int stsi(void *sysinfo, int fc, int sel1, int sel2)
} }
EXPORT_SYMBOL(stsi); EXPORT_SYMBOL(stsi);
#ifdef CONFIG_PROC_FS
static bool convert_ext_name(unsigned char encoding, char *name, size_t len) static bool convert_ext_name(unsigned char encoding, char *name, size_t len)
{ {
switch (encoding) { switch (encoding) {
...@@ -301,6 +303,8 @@ static int __init sysinfo_create_proc(void) ...@@ -301,6 +303,8 @@ static int __init sysinfo_create_proc(void)
} }
device_initcall(sysinfo_create_proc); device_initcall(sysinfo_create_proc);
#endif /* CONFIG_PROC_FS */
/* /*
* Service levels interface. * Service levels interface.
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册