Messages in this thread Patch in this message | | | Subject | [PATCH 2/2] Fix ipmi_poweroff compilation without procfs | From | Eric Sesterhenn / snakebyte <> | Date | Mon, 12 Dec 2005 12:08:30 +0100 |
| |
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/
| |