]>
xen: move __ro_after_init section symbols to xen/sections.h
authorOleksii Kurochko <oleksii.kurochko@gmail.com>
Mon, 30 Jun 2025 08:05:04 +0000 (10:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 30 Jun 2025 08:05:04 +0000 (10:05 +0200)
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@gmail.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/include/asm/setup.h
xen/arch/x86/include/asm/setup.h
xen/include/xen/sections.h

index 2b58549c1af1888580fcdf224af8b7a49b9de069..b199d92a426217ba9e33777493ce0e53a5c8671a 100644 (file)
@@ -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 */
index ac34c698551ec50680eeff29a16b3244959696b3..b01e83a8ed9f76a03c7fc5dfa1636275df24f3c3 100644 (file)
@@ -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[];
index fe49d7d0e63ab59ac53284446a01f51d8d306d28..cd542bfe10977ed5cf05b6e906c663a2dd58dd40 100644 (file)
@@ -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) ({                           \