From: Chen Gang Date: Fri, 29 Nov 2013 04:01:37 +0000 (+0800) Subject: arch: hexagon: kernel: reset.c: use function pointer instead of function for pm_power... X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=b1ddb5cc58dda42db21fc3e1c05bb6c28ac4d978;p=deliverable%2Flinux.git arch: hexagon: kernel: reset.c: use function pointer instead of function for pm_power_off and export it 'pm_power_off' is a function pointer, not a function, so need change its type, and also need export it, or can not pass compiling with allmodconfig. The related error: MODPOST 2879 modules ERROR: "pm_power_off" [drivers/char/ipmi/ipmi_poweroff.ko] undefined! Signed-off-by: Chen Gang Signed-off-by: Richard Kuo --- diff --git a/arch/hexagon/kernel/reset.c b/arch/hexagon/kernel/reset.c index 6aeabc962b3b..76483c10130d 100644 --- a/arch/hexagon/kernel/reset.c +++ b/arch/hexagon/kernel/reset.c @@ -33,6 +33,5 @@ void machine_restart(char *cmd) { } -void pm_power_off(void) -{ -} +void (*pm_power_off)(void) = NULL; +EXPORT_SYMBOL(pm_power_off);