From: Josh Poimboeuf Date: Wed, 17 Sep 2025 16:03:14 +0000 (-0700) Subject: compiler.h: Make addressable symbols less of an eyesore X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f14f1f91883aa2bfd6663161d2002c8ce937c43;p=thirdparty%2Fkernel%2Flinux.git compiler.h: Make addressable symbols less of an eyesore Avoid underscore overload by changing: __UNIQUE_ID___addressable_loops_per_jiffy_868 to the following: __UNIQUE_ID_addressable_loops_per_jiffy_868 This matches the format used by other __UNIQUE_ID()-generated symbols and improves readability for those who stare at ELF symbol table dumps. Acked-by: Petr Mladek Tested-by: Joe Lawrence Signed-off-by: Josh Poimboeuf --- diff --git a/include/linux/compiler.h b/include/linux/compiler.h index 6a32250f22f73..ab181d87d71d3 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -287,7 +287,7 @@ static inline void *offset_to_ptr(const int *off) */ #define ___ADDRESSABLE(sym, __attrs) \ static void * __used __attrs \ - __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym; + __UNIQUE_ID(__PASTE(addressable_, sym)) = (void *)(uintptr_t)&sym; #define __ADDRESSABLE(sym) \ ___ADDRESSABLE(sym, __section(".discard.addressable"))