lkml.org 
[lkml]   [2005]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 2/2] Fix ipmi_poweroff compilation without procfs
From
Date
This patch fixes ipmi compilation when procfs is disabled

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>

--- linux-2.6.15-rc5/drivers/char/ipmi/ipmi_poweroff.c.orig 2005-12-08 12:11:03.000000000 +0100
+++ linux-2.6.15-rc5/drivers/char/ipmi/ipmi_poweroff.c 2005-12-08 12:12:42.000000000 +0100
@@ -613,7 +613,9 @@ static int ipmi_poweroff_init (void)

rv = ipmi_smi_watcher_register(&smi_watcher);
if (rv) {
+#ifdef CONFIG_PROC_FS
unregister_sysctl_table(ipmi_table_header);
+#endif
printk(KERN_ERR PFX "Unable to register SMI watcher: %d\n", rv);
goto out_err;
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-12-12 12:10    [W:0.130 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site