From 731f0c6502f96400d293ffe846b8aff7e56fddc6 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sat, 10 Apr 2021 15:17:21 +0200 Subject: [PATCH] CLEANUP: initcall: rename HA_SECTION to HA_INIT_SECTION The HA_SECTION name is too generic and will be reused globally. Let's rename this one. --- include/haproxy/initcall.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/haproxy/initcall.h b/include/haproxy/initcall.h index 7066cfcd9a..56a524ffa7 100644 --- a/include/haproxy/initcall.h +++ b/include/haproxy/initcall.h @@ -83,9 +83,9 @@ struct initcall { #if !defined(USE_OBSOLETE_LINKER) #ifdef __APPLE__ -#define HA_SECTION(s) __section__("__DATA, i_" # s) +#define HA_INIT_SECTION(s) __section__("__DATA, i_" # s) #else -#define HA_SECTION(s) __section__("i_" # s) +#define HA_INIT_SECTION(s) __section__("i_" # s) #endif /* Declare a static variable in the init section dedicated to stage , @@ -104,7 +104,7 @@ struct initcall { __GLOBL(__start_i_##stg ); \ __GLOBL(__stop_i_##stg ); \ static const struct initcall *__initcb_##linenum \ - __attribute__((__used__,HA_SECTION(stg))) = \ + __attribute__((__used__,HA_INIT_SECTION(stg))) = \ (stg < STG_SIZE) ? &(const struct initcall) { \ .fct = (void (*)(void *,void *,void *))function, \ .arg1 = (void *)(a1), \ -- 2.47.3