Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

alpha: fix trivial section mismatch warnings

Fix the following section mismatch warnings:
WARNING: arch/alpha/kernel/built-in.o(.text+0x7c78): Section mismatch: reference to .init.text:init_rtc_irq (between 'common_init_rtc' and 'timer_interrupt')
WARNING: arch/alpha/kernel/built-in.o(.text+0x7c7c): Section mismatch: reference to .init.text:init_rtc_irq (between 'common_init_rtc' and 'timer_interrupt')
WARNING: arch/alpha/kernel/built-in.o(.data+0x2c30): Section mismatch: reference to .init.text:srm_console_setup (between 'srmcons' and 'tsunami_pci_ops')

In all three cases functions marked __init was called outside __init context.
So the fix was to just drop the __init attribute.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Meelis Roos <mroos@linux.ee>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Sam Ravnborg and committed by
Linus Torvalds
ebaf4fc1 2fea299f

+3 -3
+1 -1
arch/alpha/kernel/srmcons.c
··· 289 289 return srmcons_driver; 290 290 } 291 291 292 - static int __init 292 + static int 293 293 srm_console_setup(struct console *co, char *options) 294 294 { 295 295 return 0;
+1 -1
arch/alpha/kernel/sys_marvel.c
··· 420 420 io7_clear_errors(io7); 421 421 } 422 422 423 - static void 423 + static void __init 424 424 marvel_init_rtc(void) 425 425 { 426 426 init_rtc_irq();
+1 -1
arch/alpha/kernel/time.c
··· 144 144 return IRQ_HANDLED; 145 145 } 146 146 147 - void 147 + void __init 148 148 common_init_rtc(void) 149 149 { 150 150 unsigned char x;