From: Willy Tarreau Date: Sat, 10 Apr 2021 13:17:21 +0000 (+0200) Subject: CLEANUP: initcall: rename HA_SECTION to HA_INIT_SECTION X-Git-Tag: v2.4-dev17~162 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=731f0c6502f96400d293ffe846b8aff7e56fddc6;p=thirdparty%2Fhaproxy.git 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. --- 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), \