Skip to contentSkip to conversation

avr32: pm: Fix section mismatch

PATCH In review Matthias Brugger 2 participants 2 messages Dec 4, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 avr32: pm: Fix section mismatch

The power management has a section mismatch which leads to the following warning during compilation:

WARNING: arch/avr32/mach-at32ap/built-in.o(.text+0x16d4): Section mismatch in reference from the function avr32_pm_offset() to the function .init.text:pm_exception()
The function avr32_pm_offset() references
the function __init pm_exception().

---
 arch/avr32/mach-at32ap/pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/avr32/mach-at32ap/pm.c +1 -1
index 32d680e..db19084 100644
@@ -181,7 +181,7 @@ static const struct platform_suspend_ops avr32_pm_ops = {
 	.enter	= avr32_pm_enter,
 };
 
-static unsigned long avr32_pm_offset(void *symbol)
+static unsigned long __init avr32_pm_offset(void *symbol)
 {
 	extern u8 pm_exception[];
 
Signature · 1 line
1.8.1.2
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Matthias Brugger

The power management has a section mismatch which leads to the following warning during compilation:

WARNING: arch/avr32/mach-at32ap/built-in.o(.text+0x16d4): Section mismatch in reference from the function avr32_pm_offset() to the function .init.text:pm_exception()
The function avr32_pm_offset() references
the function __init pm_exception().

Thank you for fixing, I'll add this to my for-linus branch.

Quoted 2 lines
Quoted 3 lines
---
 arch/avr32/mach-at32ap/pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

<snipp diff>

Signature · 2 lines
mvh
Hans-Christian Egtvedt