This is an unnecessary indirection. Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com> --- CC: Anthony PERARD <anthony.per...@vates.tech> CC: Michal Orzel <michal.or...@amd.com> CC: Jan Beulich <jbeul...@suse.com> CC: Julien Grall <jul...@xen.org> CC: Roger Pau Monné <roger....@citrix.com> CC: Stefano Stabellini <sstabell...@kernel.org> --- xen/include/xen/compiler.h | 1 - xen/include/xen/init.h | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/xen/include/xen/compiler.h b/xen/include/xen/compiler.h index b118e4ba62eb..301c9af29553 100644 --- a/xen/include/xen/compiler.h +++ b/xen/include/xen/compiler.h @@ -72,7 +72,6 @@ #define __section(s) __attribute__((__section__(s))) #endif #define __used_section(s) __used __attribute__((__section__(s))) -#define __text_section(s) __attribute__((__section__(s))) #define __aligned(a) __attribute__((__aligned__(a))) diff --git a/xen/include/xen/init.h b/xen/include/xen/init.h index 0a4223833755..037ff0dbf8ff 100644 --- a/xen/include/xen/init.h +++ b/xen/include/xen/init.h @@ -5,9 +5,9 @@ * Mark functions and data as being only used at initialization * or exit time. */ -#define __init __text_section(".init.text") -#define __exit __text_section(".exit.text") -#define __cold __text_section(".text.cold") +#define __init __section(".init.text") +#define __exit __section(".exit.text") +#define __cold __section(".text.cold") #define __initdata __section(".init.data") #define __initconst __section(".init.rodata") #define __initconstrel __section(".init.rodata.rel") -- 2.39.5