projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07d592b
)
arch: hexagon: kernel: reset.c: use function pointer instead of function for pm_power...
author
Chen Gang
<gang.chen.5i5j@gmail.com>
Fri, 29 Nov 2013 04:01:37 +0000
(12:01 +0800)
committer
Richard Kuo
<rkuo@codeaurora.org>
Fri, 4 Apr 2014 23:20:00 +0000
(18:20 -0500)
'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>
arch/hexagon/kernel/reset.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/hexagon/kernel/reset.c
b/arch/hexagon/kernel/reset.c
index 6aeabc962b3b41348ea84e55970d4b2db67cd25d..76483c10130d653e8ecc6c287ec1c56e33099e36 100644
(file)
--- 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);