avr32: pm: Fix section mismatch
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
@@ -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
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 functionavr32_pm_offset()references
the function__initpm_exception().
Thank you for fixing, I'll add this to my for-linus branch.
Quoted 2 lines
Signed-off-by Matthias Brugger <[email protected]>
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