[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] xen: Drop __text_section()
This is an unnecessary indirection. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- CC: Anthony PERARD <anthony.perard@xxxxxxxxxx> CC: Michal Orzel <michal.orzel@xxxxxxx> CC: Jan Beulich <jbeulich@xxxxxxxx> CC: Julien Grall <julien@xxxxxxx> CC: Roger Pau Monné <roger.pau@xxxxxxxxxx> CC: Stefano Stabellini <sstabellini@xxxxxxxxxx> --- 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
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |