diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2006-12-06 23:41:20 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 11:39:48 -0500 |
commit | 1aa16eeacd6f10c202da1cf0cff5c81107dac942 (patch) | |
tree | aa4f0c1b1137bc36e7bdb49687b8a1887f8715d9 /drivers/char/ipmi/ipmi_msghandler.c | |
parent | 5a1099baa86c17c521859f417c4c1353d0ae9096 (diff) |
[PATCH] IPMI: fix PROC_FS=n warnings
Fix build warnings for PROC_FS=n.
drivers/char/ipmi/ipmi_poweroff.c:707: warning: label 'out_err' defined but not used
drivers/char/ipmi/ipmi_msghandler.c:1774: warning: 'ipmb_file_read_proc' defined but not used
drivers/char/ipmi/ipmi_msghandler.c:1790: warning: 'version_file_read_proc' defined but not used
drivers/char/ipmi/ipmi_msghandler.c:1801: warning: 'stat_file_read_proc' defined but not used
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
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_msghandler.c')
-rw-r--r-- | drivers/char/ipmi/ipmi_msghandler.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c index ff0e68f0386b..5703ee28e1cc 100644 --- a/drivers/char/ipmi/ipmi_msghandler.c +++ b/drivers/char/ipmi/ipmi_msghandler.c | |||
@@ -1769,6 +1769,7 @@ int ipmi_request_supply_msgs(ipmi_user_t user, | |||
1769 | -1, 0); | 1769 | -1, 0); |
1770 | } | 1770 | } |
1771 | 1771 | ||
1772 | #ifdef CONFIG_PROC_FS | ||
1772 | static int ipmb_file_read_proc(char *page, char **start, off_t off, | 1773 | static int ipmb_file_read_proc(char *page, char **start, off_t off, |
1773 | int count, int *eof, void *data) | 1774 | int count, int *eof, void *data) |
1774 | { | 1775 | { |
@@ -1857,6 +1858,7 @@ static int stat_file_read_proc(char *page, char **start, off_t off, | |||
1857 | 1858 | ||
1858 | return (out - ((char *) page)); | 1859 | return (out - ((char *) page)); |
1859 | } | 1860 | } |
1861 | #endif /* CONFIG_PROC_FS */ | ||
1860 | 1862 | ||
1861 | int ipmi_smi_add_proc_entry(ipmi_smi_t smi, char *name, | 1863 | int ipmi_smi_add_proc_entry(ipmi_smi_t smi, char *name, |
1862 | read_proc_t *read_proc, write_proc_t *write_proc, | 1864 | read_proc_t *read_proc, write_proc_t *write_proc, |