Skip to content

Commit bf2ae2b

Browse files
Christoph Lametertorvalds
authored andcommitted
pageflags: standardize comment inclusion in asm-offsets.h and fix MIPS
Add the ability to pass comments into asm-offsets.h by generating asm output like -># comment line Mips needs this feature to preserve the comments that are in asm-mips/asm-offsets.h right now. Then remove the special handling for mips from Kbuild and convert mips to use the new string to include the comments. Cc: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Christoph Lameter <clameter@sgi.com> Cc: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 726b801 commit bf2ae2b

2 files changed

Lines changed: 205 additions & 205 deletions

File tree

‎Kbuild‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ targets += arch/$(SRCARCH)/kernel/asm-offsets.s
5252

5353
# Default sed regexp - multiline due to syntax constraints
5454
define sed-y
55-
"/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"
55+
"/^->/{s:->#\(.*\):/* \1 */:; \
56+
s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \
57+
s:->::; p;}"
5658
endef
57-
# Override default regexp for specific architectures
58-
sed-$(CONFIG_MIPS) := "/^@@@/{s/^@@@//; s/ \#.*\$$//; p;}"
5959

6060
quiet_cmd_offsets = GEN $@
6161
define cmd_offsets

0 commit comments

Comments
 (0)