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.

compiler: Tweak __UNIQUE_ID() naming

In preparation for the objtool klp diff subcommand, add an underscore
between the name and the counter. This will make it possible for
objtool to distinguish between the non-unique and unique parts of the
symbol name so it can properly correlate the symbols.

Acked-by: Petr Mladek <pmladek@suse.com>
Tested-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>

+5 -1
+5 -1
include/linux/compiler.h
··· 163 163 __asm__ ("" : "=r" (var) : "0" (var)) 164 164 #endif 165 165 166 - #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) 166 + /* Format: __UNIQUE_ID_<name>_<__COUNTER__> */ 167 + #define __UNIQUE_ID(name) \ 168 + __PASTE(__UNIQUE_ID_, \ 169 + __PASTE(name, \ 170 + __PASTE(_, __COUNTER__))) 167 171 168 172 /** 169 173 * data_race - mark an expression as containing intentional data races