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

arch: unicore32: ksyms: export 'pm_power_off' to avoid compiling failure.

Two driver modules need 'pm_power_off', so export it.

The related error (with allmodconfig under unicore32):

MODPOST 4039 modules
ERROR: "pm_power_off" [drivers/mfd/retu-mfd.ko] undefined!
ERROR: "pm_power_off" [drivers/char/ipmi/ipmi_poweroff.ko] undefined!

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Acked-by: Xuetao Guan <gxt@mprc.pku.edu.cn>
Signed-off-by: Xuetao Guan <gxt@mprc.pku.edu.cn>

authored by

Chen Gang and committed by
Guan Xuetao
3420d49d 40ad2a67

+1
+1
arch/unicore32/kernel/process.c
··· 60 60 * Function pointers to optional machine specific functions 61 61 */ 62 62 void (*pm_power_off)(void) = NULL; 63 + EXPORT_SYMBOL(pm_power_off); 63 64 64 65 void machine_power_off(void) 65 66 {