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

x86: Work around old gas bug

Add extra parentheses around a couple of definitions introduced
by "x86: Cleanup vector usage" and used in assembly macro
arguments, and remove spaces. Without that old (2.16.1) gas
would see more macro arguments than were actually specified.

Reported-and-tested-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Cc: Shaohua Li <shaohua.li@intel.com>
LKML-Reference: <4D6F81B10200007800034B0B@vpn.id2.novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by

Jan Beulich and committed by
Ingo Molnar
d04c579f eb8c1e2c

+4 -4
+4 -4
arch/x86/include/asm/irq_vectors.h
··· 126 126 127 127 /* up to 32 vectors used for spreading out TLB flushes: */ 128 128 #if NR_CPUS <= 32 129 - # define NUM_INVALIDATE_TLB_VECTORS NR_CPUS 129 + # define NUM_INVALIDATE_TLB_VECTORS (NR_CPUS) 130 130 #else 131 - # define NUM_INVALIDATE_TLB_VECTORS 32 131 + # define NUM_INVALIDATE_TLB_VECTORS (32) 132 132 #endif 133 133 134 - #define INVALIDATE_TLB_VECTOR_END 0xee 134 + #define INVALIDATE_TLB_VECTOR_END (0xee) 135 135 #define INVALIDATE_TLB_VECTOR_START \ 136 - (INVALIDATE_TLB_VECTOR_END - NUM_INVALIDATE_TLB_VECTORS + 1) 136 + (INVALIDATE_TLB_VECTOR_END-NUM_INVALIDATE_TLB_VECTORS+1) 137 137 138 138 #define NR_VECTORS 256 139 139