Commit d48daf37 authored by Ido Yariv's avatar Ido Yariv Committed by Ingo Molnar

x86/vsmp: Fix linker error when CONFIG_PROC_FS is not set

set_vsmp_pv_ops() references no_irq_affinity which is undeclared
if CONFIG_PROC_FS isn't set. Fix this by adding an #ifdef around
this variable's access.
Reported-by: default avatarFengguang Wu <wfg@linux.intel.com>
Signed-off-by: default avatarIdo Yariv <ido@wizery.com>
Acked-by: default avatarShai Fultheim <shai@scalemp.com>
Link: http://lkml.kernel.org/r/1339688588-12674-1-git-send-email-ido@wizery.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 110c1e1f
...@@ -101,7 +101,10 @@ static void __init set_vsmp_pv_ops(void) ...@@ -101,7 +101,10 @@ static void __init set_vsmp_pv_ops(void)
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
if (cap & ctl & BIT(8)) { if (cap & ctl & BIT(8)) {
ctl &= ~BIT(8); ctl &= ~BIT(8);
#ifdef CONFIG_PROC_FS
/* Don't let users change irq affinity via procfs */
no_irq_affinity = 1; no_irq_affinity = 1;
#endif
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment