* [PATCH 2/4] ACPI: fix a section mismatch
@ 2010-12-08 2:40 Zhang Rui
0 siblings, 0 replies; only message in thread
From: Zhang Rui @ 2010-12-08 2:40 UTC (permalink / raw)
To: Brown, Len; +Cc: linux-acpi@vger.kernel.org, Zhang, Rui
WARNING: drivers/acpi/acpi.o(.text+0xeda): Section mismatch in reference from the function acpi_os_initialize1() to the function .init.text:set_osi_linux()
The function acpi_os_initialize1() references
the function __init set_osi_linux().
This is often because acpi_os_initialize1 lacks a __init
annotation or the annotation of set_osi_linux is wrong.
Fix this section mismatch.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
---
drivers/acpi/osl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6/drivers/acpi/osl.c
===================================================================
--- linux-2.6.orig/drivers/acpi/osl.c
+++ linux-2.6/drivers/acpi/osl.c
@@ -1530,7 +1530,7 @@ acpi_status __init acpi_os_initialize(vo
return AE_OK;
}
-acpi_status acpi_os_initialize1(void)
+acpi_status __init acpi_os_initialize1(void)
{
kacpid_wq = create_workqueue("kacpid");
kacpi_notify_wq = create_workqueue("kacpi_notify");
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-12-08 2:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-08 2:40 [PATCH 2/4] ACPI: fix a section mismatch Zhang Rui
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox