[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v1] xen: move __ro_after_init section symbols to xen/sections.h
Instead of declaring __ro_after_init_{start,end} in each architecture's asm/setup.h, move these declarations to the common header xen/sections.h. This centralizes the declarations and reduces duplication across architectures. No functional change intended. Signed-off-by: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx> --- CI tests: https://gitlab.com/xen-project/people/olkur/xen/-/pipelines/1875993985 --- xen/arch/arm/include/asm/setup.h | 2 -- xen/arch/x86/include/asm/setup.h | 1 - xen/include/xen/sections.h | 3 +++ 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/arch/arm/include/asm/setup.h b/xen/arch/arm/include/asm/setup.h index 2b58549c1a..b199d92a42 100644 --- a/xen/arch/arm/include/asm/setup.h +++ b/xen/arch/arm/include/asm/setup.h @@ -65,8 +65,6 @@ int map_irq_to_domain(struct domain *d, unsigned int irq, int map_range_to_domain(const struct dt_device_node *dev, uint64_t addr, uint64_t len, void *data); -extern const char __ro_after_init_start[], __ro_after_init_end[]; - struct init_info { /* Pointer to the stack, used by head.S when entering in C */ diff --git a/xen/arch/x86/include/asm/setup.h b/xen/arch/x86/include/asm/setup.h index ac34c69855..b01e83a8ed 100644 --- a/xen/arch/x86/include/asm/setup.h +++ b/xen/arch/x86/include/asm/setup.h @@ -5,7 +5,6 @@ #include <asm/numa.h> extern const char __2M_text_start[], __2M_text_end[]; -extern const char __ro_after_init_start[], __ro_after_init_end[]; extern const char __2M_rodata_start[], __2M_rodata_end[]; extern char __2M_init_start[], __2M_init_end[]; extern char __2M_rwdata_start[], __2M_rwdata_end[]; diff --git a/xen/include/xen/sections.h b/xen/include/xen/sections.h index fe49d7d0e6..cd542bfe10 100644 --- a/xen/include/xen/sections.h +++ b/xen/include/xen/sections.h @@ -5,6 +5,9 @@ #include <xen/compiler.h> +/* SAF-0-safe */ +extern const char __ro_after_init_start[], __ro_after_init_end[]; + /* SAF-0-safe */ extern char __init_begin[], __init_end[]; #define is_init_section(p) ({ \ -- 2.49.0
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |