]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sched: fix init_hrtick() section mismatch warning
authorRakib Mullick <rakib.mullick@gmail.com>
Mon, 22 Sep 2008 21:55:45 +0000 (14:55 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 23 Sep 2008 09:02:13 +0000 (11:02 +0200)
LD      kernel/built-in.o
WARNING: kernel/built-in.o(.text+0x326): Section mismatch in reference
from the function init_hrtick() to the variable
.cpuinit.data:hotplug_hrtick_nb.8
The function init_hrtick() references
the variable __cpuinitdata hotplug_hrtick_nb.8.
This is often because init_hrtick lacks a __cpuinitdata
annotation or the annotation of hotplug_hrtick_nb.8 is wrong.

Signed-off-by: Md.Rakib H. Mullick <rakib.mullick@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c

index 98890807375b87df9f134f3fdd7505153547e678..13dd2db9fb2dc185a4a95a86aab9f89b4850ccaf 100644 (file)
@@ -1087,7 +1087,7 @@ hotplug_hrtick(struct notifier_block *nfb, unsigned long action, void *hcpu)
        return NOTIFY_DONE;
 }
 
-static void init_hrtick(void)
+static __init void init_hrtick(void)
 {
        hotcpu_notifier(hotplug_hrtick, 0);
 }