mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
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 <[email protected]> Tested-by: Joe Lawrence <[email protected]> Signed-off-by: Josh Poimboeuf <[email protected]>
This commit is contained in:
1 parent
122679ebf9
commit
afb026b6d3
1 file changed
+5
-1
@@ -163,7 +163,11 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val,
|
||||
__asm__ ("" : "=r" (var) : "0" (var))
|
||||
#endif
|
||||
|
||||
#define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
|
||||
/* Format: __UNIQUE_ID_<name>_<__COUNTER__> */
|
||||
#define __UNIQUE_ID(name) \
|
||||
__PASTE(__UNIQUE_ID_, \
|
||||
__PASTE(name, \
|
||||
__PASTE(_, __COUNTER__)))
|
||||
|
||||
/**
|
||||
* data_race - mark an expression as containing intentional data races
|
||||
|
||||
Reference in new issue
Block a user