aboutsummaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorAlexander van Heukelum <heukelum@fastmail.fm>2010-10-21 17:30:49 -0400
committerIngo Molnar <mingo@elte.hu>2010-10-22 04:45:02 -0400
commita22dcdb0032c78c6b443f6897d7ac432a3b5a272 (patch)
tree67d77ee15ccfe6ba29f5af0102cd00da5ac703d1 /Kbuild
parent3234282f33b29d349bcada40204fc7c8fda7fe72 (diff)
x86, asm: Fix ancient-GAS workaround
It turns out to generate something like this: printk ( ("<3>") "something"); The extra parentheses here break the UML compile. Change the sed-program to add the parentheses only for numbers. Reported-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm> Acked-by: Jan Beulich <jbeulich@novell.com> LKML-Reference: <1287696649.20421.1401306095@webmail.messagingengine.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Kbuild')
-rw-r--r--Kbuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kbuild b/Kbuild
index 399593942a9b..431f7ca2404c 100644
--- a/Kbuild
+++ b/Kbuild
@@ -53,7 +53,8 @@ targets += arch/$(SRCARCH)/kernel/asm-offsets.s
53# Default sed regexp - multiline due to syntax constraints 53# Default sed regexp - multiline due to syntax constraints
54define sed-y 54define sed-y
55 "/^->/{s:->#\(.*\):/* \1 */:; \ 55 "/^->/{s:->#\(.*\):/* \1 */:; \
56 s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 (\2) /* \3 */:; \ 56 s:^->\([^ ]*\) [\$$#]*\([-0-9]*\) \(.*\):#define \1 (\2) /* \3 */:; \
57 s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \
57 s:->::; p;}" 58 s:->::; p;}"
58endef 59endef
59 60