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>
/* 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>
#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 */