diff options
author | Alexander van Heukelum <[email protected]> | 2010-10-21 23:30:49 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2010-10-22 10:45:02 +0200 |
commit | a22dcdb0032c78c6b443f6897d7ac432a3b5a272 (patch) | |
tree | 67d77ee15ccfe6ba29f5af0102cd00da5ac703d1 | |
parent | 3234282f33b29d349bcada40204fc7c8fda7fe72 (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 <[email protected]>
Signed-off-by: Alexander van Heukelum <[email protected]>
Acked-by: Jan Beulich <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r-- | Kbuild | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -53,7 +53,8 @@ targets += arch/$(SRCARCH)/kernel/asm-offsets.s # Default sed regexp - multiline due to syntax constraints define sed-y "/^->/{s:->#\(.*\):/* \1 */:; \ - s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 (\2) /* \3 */:; \ + s:^->\([^ ]*\) [\$$#]*\([-0-9]*\) \(.*\):#define \1 (\2) /* \3 */:; \ + s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \ s:->::; p;}" endef |