Commit 1aa16eea authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[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: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Cc: Corey Minyard <minyard@acm.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5a1099ba
...@@ -1769,6 +1769,7 @@ int ipmi_request_supply_msgs(ipmi_user_t user, ...@@ -1769,6 +1769,7 @@ int ipmi_request_supply_msgs(ipmi_user_t user,
-1, 0); -1, 0);
} }
#ifdef CONFIG_PROC_FS
static int ipmb_file_read_proc(char *page, char **start, off_t off, static int ipmb_file_read_proc(char *page, char **start, off_t off,
int count, int *eof, void *data) int count, int *eof, void *data)
{ {
...@@ -1857,6 +1858,7 @@ static int stat_file_read_proc(char *page, char **start, off_t off, ...@@ -1857,6 +1858,7 @@ static int stat_file_read_proc(char *page, char **start, off_t off,
return (out - ((char *) page)); return (out - ((char *) page));
} }
#endif /* CONFIG_PROC_FS */
int ipmi_smi_add_proc_entry(ipmi_smi_t smi, char *name, int ipmi_smi_add_proc_entry(ipmi_smi_t smi, char *name,
read_proc_t *read_proc, write_proc_t *write_proc, read_proc_t *read_proc, write_proc_t *write_proc,
......
...@@ -702,9 +702,9 @@ static int ipmi_poweroff_init (void) ...@@ -702,9 +702,9 @@ static int ipmi_poweroff_init (void)
printk(KERN_ERR PFX "Unable to register SMI watcher: %d\n", rv); printk(KERN_ERR PFX "Unable to register SMI watcher: %d\n", rv);
goto out_err; goto out_err;
} }
#endif
out_err: out_err:
#endif
return rv; return rv;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment