]> git.baikalelectronics.ru Git - kernel.git/commit
[SPARC64]: Fix section mismatchs from dr_cpu_data
authorSam Ravnborg <sam@ravnborg.org>
Mon, 25 Feb 2008 03:47:51 +0000 (19:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Feb 2008 03:47:51 +0000 (19:47 -0800)
commitfdab983ef1532a44ce773f099ed875a9193e0380
treece44650c1c2ca12eb0f4563ffb49e64cc1c697c5
parent0e449010836fe4f84c0a6c7707e74d3c11dfc213
[SPARC64]: Fix section mismatchs from dr_cpu_data

Fix following warnings:
WARNING: vmlinux.o(.text+0x4b258): Section mismatch in reference from the function dr_cpu_data() to the function .devinit.text:mdesc_fill_in_cpu_data()
WARNING: vmlinux.o(.text+0x4b290): Section mismatch in reference from the function dr_cpu_data() to the function .cpuinit.text:cpu_up()

mdesc_fill_in_cpu_data() is only used during early init and for
cpu hotplug so the __cpuinit annotation is the correct choice.
We have the call chain:
dr_cpu_data() => dr_cpu_configure() => mdesc_fill_in_cpu_data()

dr_cpu_data() is used only during early init and for cpu
hotplug. So annotating them all __cpuinit solves the
section mismatch and should be correct.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/ds.c
arch/sparc64/kernel/mdesc.c