Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

objtool: Simplify .annotate_insn code generation output some more

Remove the superfluous section name quotes, and combine the longs into a
single command.

Before:

911: .pushsection ".discard.annotate_insn", "M", @progbits, 8; .long 911b - .; .long 2; .popsection

After:

911: .pushsection .discard.annotate_insn, "M", @progbits, 8; .long 911b - ., 2; .popsection

No change in functionality.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://patch.msgid.link/hpsfcihgqmhcdrg7pop7z73ptymakgjq7qlxrawrjxilosk43l@xikqif3ievj4

authored by

Josh Poimboeuf and committed by
Ingo Molnar
2d3451ef 799647dd

+6 -7
+6 -7
include/linux/annotate.h
··· 8 8 9 9 #define __ASM_ANNOTATE(section, label, type) \ 10 10 .pushsection section, "M", @progbits, 8; \ 11 - .long label - .; \ 12 - .long type; \ 11 + .long label - ., type; \ 13 12 .popsection 14 13 15 14 #ifndef __ASSEMBLY__ 16 15 17 16 #define ASM_ANNOTATE_LABEL(label, type) \ 18 - __stringify(__ASM_ANNOTATE(".discard.annotate_insn", label, type)) 17 + __stringify(__ASM_ANNOTATE(.discard.annotate_insn, label, type)) 19 18 20 19 #define ASM_ANNOTATE(type) \ 21 20 "911: " \ 22 - __stringify(__ASM_ANNOTATE(".discard.annotate_insn", 911b, type)) 21 + __stringify(__ASM_ANNOTATE(.discard.annotate_insn, 911b, type)) 23 22 24 23 #define ASM_ANNOTATE_DATA(type) \ 25 24 "912: " \ 26 - __stringify(__ASM_ANNOTATE(".discard.annotate_data", 912b, type)) 25 + __stringify(__ASM_ANNOTATE(.discard.annotate_data, 912b, type)) 27 26 28 27 #else /* __ASSEMBLY__ */ 29 28 30 29 .macro ANNOTATE type 31 30 .Lhere_\@: 32 - __ASM_ANNOTATE(".discard.annotate_insn", .Lhere_\@, \type) 31 + __ASM_ANNOTATE(.discard.annotate_insn, .Lhere_\@, \type) 33 32 .endm 34 33 35 34 .macro ANNOTATE_DATA type 36 35 .Lhere_\@: 37 - __ASM_ANNOTATE(".discard.annotate_data", .Lhere_\@, \type) 36 + __ASM_ANNOTATE(.discard.annotate_data, .Lhere_\@, \type) 38 37 .endm 39 38 40 39 #endif /* __ASSEMBLY__ */