From: David Mosberger-Tang Date: Tue, 12 Apr 2005 18:04:00 +0000 (-0700) Subject: [IA64] fix "section mismatch" compile-time-error X-Git-Tag: upstream/snapshot3+hdmi~47405^2~220^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=66302f211a21bb9439a2ae7f7b6a4c386bb10ecd;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [IA64] fix "section mismatch" compile-time-error I noticed this typo when trying to compile a kernel which had CONFIG_HOTPLUG turned off. In that case, __devinit is no longer a no-op and the compiler then detects a section-conflict. Fix by using __devinitdata instead of __devinit. Same patch also submitted by Darren Williams to fix compilation error using sim_defconfig (which has CONFIG_HOTPLUG=n). Signed-off-by: David Mosberger-Tang Signed-off-by: Darren Williams Signed-off-by: Tony Luck --- diff --git a/arch/ia64/kernel/smpboot.c b/arch/ia64/kernel/smpboot.c index 0d5ee57..3865f08 100644 --- a/arch/ia64/kernel/smpboot.c +++ b/arch/ia64/kernel/smpboot.c @@ -624,7 +624,7 @@ static struct { __u16 thread_id; __u16 proc_fixed_addr; __u8 valid; -}mt_info[NR_CPUS] __devinit; +} mt_info[NR_CPUS] __devinitdata; #ifdef CONFIG_HOTPLUG_CPU static inline void