Skip to content

Commit

Permalink
pageflags: standardize comment inclusion in asm-offsets.h and fix MIPS
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Christoph Lameter <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Christoph Lameter authored and torvalds committed Apr 28, 2008
1 parent 726b801 commit bf2ae2b
Show file tree
Hide file tree
Showing 2 changed files with 205 additions and 205 deletions.
6 changes: 3 additions & 3 deletions Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ targets += arch/$(SRCARCH)/kernel/asm-offsets.s

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

quiet_cmd_offsets = GEN $@
define cmd_offsets
Expand Down
Loading

0 comments on commit bf2ae2b

Please sign in to comment.