Messages in this thread Patch in this message | | | Date | Tue, 19 Apr 2011 08:35:46 -0700 | From | Randy Dunlap <> | Subject | [PATCH -next] driver core: syscore exports for modular APM |
| |
From: Randy Dunlap <randy.dunlap@oracle.com>
When CONFIG_APM=m, build fails with:
ERROR: "syscore_suspend" [arch/x86/kernel/apm.ko] undefined! ERROR: "syscore_resume" [arch/x86/kernel/apm.ko] undefined!
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> --- drivers/base/syscore.c | 2 ++ 1 file changed, 2 insertions(+)
--- linux-next-20110419.orig/drivers/base/syscore.c +++ linux-next-20110419/drivers/base/syscore.c @@ -73,6 +73,7 @@ int syscore_suspend(void) return ret; } +EXPORT_SYMBOL_GPL(syscore_suspend); /** * syscore_resume - Execute all the registered system core resume callbacks. @@ -95,6 +96,7 @@ void syscore_resume(void) "Interrupts enabled after %pF\n", ops->resume); } } +EXPORT_SYMBOL_GPL(syscore_resume); #endif /* CONFIG_PM_SLEEP */ /**
| |