diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-01-09 23:51:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-10 11:01:25 -0500 |
commit | be4f1bb2627c2d963d09be1cd69f8820995a9112 (patch) | |
tree | c1b347a9675e499755fdedb324e7d88b2b7858f5 /drivers/char/ipmi/ipmi_poweroff.c | |
parent | 9c107805aba774667debc01704718960339c24b9 (diff) |
[PATCH] ipmi: fix compile errors with PROC_FS=n
...
CC [M] drivers/char/ipmi/ipmi_msghandler.o
drivers/char/ipmi/ipmi_msghandler.c:3301: `proc_ipmi_root' undeclared here (not in a function)
drivers/char/ipmi/ipmi_msghandler.c:3301: initializer element is not constant
drivers/char/ipmi/ipmi_msghandler.c:3301: (near initialization for `__ksymtab_proc_ipmi_root.value')
drivers/char/ipmi/ipmi_msghandler.c:1535: warning: `ipmb_file_read_proc' defined but not used
drivers/char/ipmi/ipmi_msghandler.c:1551: warning: `version_file_read_proc' defined but not used
drivers/char/ipmi/ipmi_msghandler.c:1561: warning: `stat_file_read_proc' defined but not used
...
CC [M] drivers/char/ipmi/ipmi_poweroff.o
drivers/char/ipmi/ipmi_poweroff.c: In function `ipmi_poweroff_init':
drivers/char/ipmi/ipmi_poweroff.c:616: warning: implicit declaration of function `unregister_sysctl_table'
drivers/char/ipmi/ipmi_poweroff.c:616: `ipmi_table_header' undeclared (first use in this function)
drivers/char/ipmi/ipmi_poweroff.c:616: (Each undeclared identifier is reported only once
drivers/char/ipmi/ipmi_poweroff.c:616: for each function it appears in.)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: Corey Minyard <minyard@acm.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/ipmi/ipmi_poweroff.c')
-rw-r--r-- | drivers/char/ipmi/ipmi_poweroff.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/ipmi/ipmi_poweroff.c b/drivers/char/ipmi/ipmi_poweroff.c index e053eade0366..49c09ae004bf 100644 --- a/drivers/char/ipmi/ipmi_poweroff.c +++ b/drivers/char/ipmi/ipmi_poweroff.c | |||
@@ -612,11 +612,14 @@ static int ipmi_poweroff_init (void) | |||
612 | #endif | 612 | #endif |
613 | 613 | ||
614 | rv = ipmi_smi_watcher_register(&smi_watcher); | 614 | rv = ipmi_smi_watcher_register(&smi_watcher); |
615 | |||
616 | #ifdef CONFIG_PROC_FS | ||
615 | if (rv) { | 617 | if (rv) { |
616 | unregister_sysctl_table(ipmi_table_header); | 618 | unregister_sysctl_table(ipmi_table_header); |
617 | printk(KERN_ERR PFX "Unable to register SMI watcher: %d\n", rv); | 619 | printk(KERN_ERR PFX "Unable to register SMI watcher: %d\n", rv); |
618 | goto out_err; | 620 | goto out_err; |
619 | } | 621 | } |
622 | #endif | ||
620 | 623 | ||
621 | out_err: | 624 | out_err: |
622 | return rv; | 625 | return rv; |