From: Andrew Cooper Date: Fri, 21 Jun 2024 19:29:07 +0000 (+0100) Subject: xen/riscv: Drop legacy __ro_after_init definition X-Git-Tag: 4.19.0-rc1~26 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=908407bf2b29a38d6879fc8c57dad14473ef67f8;p=xen.git xen/riscv: Drop legacy __ro_after_init definition 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 Reviewed-by: Oleksii Kurochko Release-Acked-by: Oleksii Kurochko --- diff --git a/xen/arch/riscv/mm.c b/xen/arch/riscv/mm.c index 053f043a3d..3ebaf6da01 100644 --- a/xen/arch/riscv/mm.c +++ b/xen/arch/riscv/mm.c @@ -1,11 +1,11 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include #include #include #include #include #include +#include #include #include diff --git a/xen/include/xen/cache.h b/xen/include/xen/cache.h index 55456823c5..82a3ba38e3 100644 --- a/xen/include/xen/cache.h +++ b/xen/include/xen/cache.h @@ -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 */