]> xenbits.xensource.com Git - xen.git/commitdiff
xen/riscv: Drop legacy __ro_after_init definition
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 21 Jun 2024 19:29:07 +0000 (20:29 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 24 Jun 2024 15:22:59 +0000 (16:22 +0100)
Hide the legacy __ro_after_init definition in xen/cache.h for RISC-V, to avoid
its use creeping in.  Only mm.c needs adjusting as a consequence

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
Release-Acked-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
xen/arch/riscv/mm.c
xen/include/xen/cache.h

index 053f043a3d2a83c9eed0b2398fbee136943295af..3ebaf6da01ccb320d0af283118d0df247749de7b 100644 (file)
@@ -1,11 +1,11 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
 
-#include <xen/cache.h>
 #include <xen/compiler.h>
 #include <xen/init.h>
 #include <xen/kernel.h>
 #include <xen/macros.h>
 #include <xen/pfn.h>
+#include <xen/sections.h>
 
 #include <asm/early_printk.h>
 #include <asm/csr.h>
index 55456823c543021243c7fea65fff6372ffb7d523..82a3ba38e3e77c083935353ab3bf44b5ca16472f 100644 (file)
@@ -15,7 +15,9 @@
 #define __cacheline_aligned __attribute__((__aligned__(SMP_CACHE_BYTES)))
 #endif
 
+#if defined(CONFIG_ARM) || defined(CONFIG_X86) || defined(CONFIG_PPC64)
 /* TODO: Phase out the use of this via cache.h */
 #define __ro_after_init __section(".data.ro_after_init")
+#endif
 
 #endif /* __LINUX_CACHE_H */