Эх сурвалжийг харах

[POWERPC] iSeries: Fix section mismatch warning in lpevents

WARNING: vmlinux.o(.text+0x4f568): Section mismatch: reference to .init.text:.__alloc_bootmem (between '.setup_hvlpevent_queue' and '.process_hvlpevents')

setup_hvlpevent_queue is only called from __init code so make it __init
as well.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Stephen Rothwell 18 жил өмнө
parent
commit
16782a604c

+ 1 - 1
arch/powerpc/platforms/iseries/lpevents.c

@@ -182,7 +182,7 @@ static int set_spread_lpevents(char *str)
 }
 }
 __setup("spread_lpevents=", set_spread_lpevents);
 __setup("spread_lpevents=", set_spread_lpevents);
 
 
-void setup_hvlpevent_queue(void)
+void __init setup_hvlpevent_queue(void)
 {
 {
 	void *eventStack;
 	void *eventStack;