Skip to contentSkip to conversation

ACPI: fix section mismatch warning

PATCH In review Namhyung Kim 2 participants 2 messages Dec 9, 2010 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: fix section mismatch warning

Annotate acpi_os_initialize1() as __init to fix following warning:

LD vmlinux.o
MODPOST vmlinux.o
WARNING: vmlinux.o(.text+0x231587): Section mismatch in reference from the function
acpi_os_initialize1() to the function .init.text:acpi_osi_setup_late()
The function acpi_os_initialize1() references
the function __init acpi_osi_setup_late().
This is often because acpi_os_initialize1 lacks a __init
annotation or the annotation of acpi_osi_setup_late is wrong.

---
 drivers/acpi/osl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/acpi/osl.c +1 -1
index 966feddf6b1b..f7227e990b0f 100644
@@ -1530,7 +1530,7 @@ acpi_status __init acpi_os_initialize(void)
 	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");
Signature · 1 line
1.7.3.3.400.g93cef
#1 lore raw
Quoted 11 lines · Namhyung Kim

Annotate acpi_os_initialize1() as __init to fix following warning:

LD vmlinux.o
MODPOST vmlinux.o
WARNING: vmlinux.o(.text+0x231587): Section mismatch in reference from the function
acpi_os_initialize1() to the function .init.text:acpi_osi_setup_late()
The function acpi_os_initialize1() references
the function __init acpi_osi_setup_late().
This is often because acpi_os_initialize1 lacks a __init
annotation or the annotation of acpi_osi_setup_late is wrong.

Quoted 1 line

yes, this is the same patch as
https://patchwork.kernel.org/patch/389432/

thanks,
rui

Quoted 17 lines
---
 drivers/acpi/osl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/acpi/osl.c +1 -1
index 966feddf6b1b..f7227e990b0f 100644
@@ -1530,7 +1530,7 @@ acpi_status __init acpi_os_initialize(void)
 	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");