]> git.karo-electronics.de Git - linux-beck.git/commit
x86_64: Work around old GAS bug
authorTao Guo <glorioustao@gmail.com>
Wed, 26 Sep 2012 08:28:22 +0000 (04:28 -0400)
committerIngo Molnar <mingo@kernel.org>
Wed, 26 Sep 2012 11:35:32 +0000 (13:35 +0200)
commit1b2b23d8573076a587ed2081e0d2b69691079e0e
tree664d3b567fe4b8f75529c4ab64755961d3d68343
parente26a44a2d618a491d5c6a2a8aaf66ee03a94739f
x86_64: Work around old GAS bug

GAS in binutils(2.16.91) could not parse parentheses within
macro parameters unless fully parenthesized, and this is a
workaround to make old gas work without generating below errors:

 arch/x86/kernel/entry_64.S: Assembler messages:
 arch/x86/kernel/entry_64.S:387: Error: too many positional arguments
 arch/x86/kernel/entry_64.S:389: Error: too many positional arguments
 [...]

Signed-off-by: Tao Guo <glorioustao@gmail.com>
Reluctantly-Acked-by: Jan Beulich <jbeulich@novell.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/1348648102-12653-1-git-send-email-glorioustao@gmail.com
[ Jan argues that these old GAS versions are fragile - which is so, but lets give them a chance. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/calling.h
arch/x86/kernel/entry_64.S