Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <gang.chen.5i5j@gmail.com>
Signed-off-by: Richard Kuo <rkuo@codeaurora.org>

authored by

Chen Gang and committed by
Richard Kuo
b1ddb5cc 07d592b0

+2 -3
+2 -3
arch/hexagon/kernel/reset.c
··· 33 33 { 34 34 } 35 35 36 - void pm_power_off(void) 37 - { 38 - } 36 + void (*pm_power_off)(void) = NULL; 37 + EXPORT_SYMBOL(pm_power_off);