Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Fengguang Wu <wfg@linux.intel.com>
Signed-off-by: Ido Yariv <ido@wizery.com>
Acked-by: Shai Fultheim <shai@scalemp.com>
Link: http://lkml.kernel.org/r/1339688588-12674-1-git-send-email-ido@wizery.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by

Ido Yariv and committed by
Ingo Molnar
d48daf37 110c1e1f

+3
+3
arch/x86/kernel/vsmp_64.c
··· 101 101 #ifdef CONFIG_SMP 102 102 if (cap & ctl & BIT(8)) { 103 103 ctl &= ~BIT(8); 104 + #ifdef CONFIG_PROC_FS 105 + /* Don't let users change irq affinity via procfs */ 104 106 no_irq_affinity = 1; 107 + #endif 105 108 } 106 109 #endif 107 110