提交 66302f21 编写于 作者: D David Mosberger-Tang 提交者: Tony Luck

[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: NDavid Mosberger-Tang <davidm@hpl.hp.com>
Signed-off-by: NDarren Williams <dsw@gelato.unsw.edu.au>
Signed-off-by: NTony Luck <tony.luck@intel.com>
上级 966dc11f
...@@ -624,7 +624,7 @@ static struct { ...@@ -624,7 +624,7 @@ static struct {
__u16 thread_id; __u16 thread_id;
__u16 proc_fixed_addr; __u16 proc_fixed_addr;
__u8 valid; __u8 valid;
}mt_info[NR_CPUS] __devinit; } mt_info[NR_CPUS] __devinitdata;
#ifdef CONFIG_HOTPLUG_CPU #ifdef CONFIG_HOTPLUG_CPU
static inline void static inline void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册