@@ -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)))
@@ -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")
This is an unnecessary indirection. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> --- CC: Anthony PERARD <anthony.perard@vates.tech> CC: Michal Orzel <michal.orzel@amd.com> CC: Jan Beulich <jbeulich@suse.com> CC: Julien Grall <julien@xen.org> CC: Roger Pau Monné <roger.pau@citrix.com> CC: Stefano Stabellini <sstabellini@kernel.org> --- xen/include/xen/compiler.h | 1 - xen/include/xen/init.h | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-)