Skip to contentSkip to conversation

fix Section mismatch warnings in prom_init.c

PATCH New Li Zhong 1 participant 1 message Jun 8, 2012 PowerPC

lore
Share & tools
lore

Li Zhong

author
#0 lore raw

PATCH 1/1 fix Section mismatch warnings in prom_init.c

This patches tries to fix a couple of Section mismatch warnings like following one:

WARNING: arch/powerpc/kernel/built-in.o(.text+0x2923c): Section mismatch in reference from the function .prom_query_opal() to the function .init.text:.call_prom()
The function .prom_query_opal() references
the function __init .call_prom().
This is often because .prom_query_opal lacks a __init annotation or the annotation of .call_prom is wrong.

---
 arch/powerpc/kernel/prom_init.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/arch/powerpc/kernel/prom_init.c
index 1b488e5..0794a30 100644

arch/powerpc/kernel/prom_init.c +2 -2
@@ -1312,7 +1312,7 @@ static struct opal_secondary_data {
 
 extern char opal_secondary_entry;
 
-static void prom_query_opal(void)
+static void __init prom_query_opal(void)
 {
 	long rc;
 
@@ -1436,7 +1436,7 @@ static void __init prom_opal_hold_cpus(void)
 	prom_debug("prom_opal_hold_cpus: end...\n");
 }
 
-static void prom_opal_takeover(void)
+static void __init prom_opal_takeover(void)
 {
 	struct opal_secondary_data *data = &RELOC(opal_secondary_data);
 	struct opal_takeover_args *args = &data->args;
Signature · 1 line
1.7.1