diff mbox series

xen: Drop __text_section()

Message ID 20250314175933.67422-1-andrew.cooper3@citrix.com (mailing list archive)
State New
Headers show
Series xen: Drop __text_section() | expand

Commit Message

Andrew Cooper March 14, 2025, 5:59 p.m. UTC
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(-)
diff mbox series

Patch

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")