提交 b1ddb5cc 编写于 作者: C Chen Gang 提交者: Richard Kuo

arch: hexagon: kernel: reset.c: use function pointer instead of function for...

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: NChen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: NRichard Kuo <rkuo@codeaurora.org>
上级 07d592b0
......@@ -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);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册