]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
objtool: Consolidate annotation macros
authorJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 2 Dec 2025 17:59:38 +0000 (09:59 -0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 3 Dec 2025 18:40:44 +0000 (19:40 +0100)
commit305c8dc477175eb29df18accc95c868acd2cdd4e
treec7a2319830055867946edd0f7ee0aefa5f4392f1
parentf387d0e1027f2d13cbfc1305b54198af701ede19
objtool: Consolidate annotation macros

Consolidate __ASM_ANNOTATE into a single macro which is used by both C
and asm.  This also makes the code generation a bit more palatable by
putting it all on a single line.

Turn this:

911:
       .pushsection .discard.annotate_insn,"M", @progbits, 8
       .long 911b - .
       .long 1
       .popsection
       jmp __x86_return_thunk

Into:

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

Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://patch.msgid.link/c05ff40d3383e85c3b59018ef0b3c7aaf993a60d.1764694625.git.jpoimboe@kernel.org
include/linux/annotate.h