On 24.11.2023 11:30, Oleksii Kurochko wrote: > The definition of __read_mostly should be removed in: > https://lore.kernel.org/xen-devel/f25eb5c9-7c14-6e23-8535-2c66772b3...@suse.com/
Andrew, can we settle on what to do with that patch? If you don't like me putting __read_mostly in xen/cache.h (consistent with __ro_after_init), would you please make an alternative suggestion? Personally I don't really understand why that patch hasn't long gone in. If further reorg is wanted, it can always be done subsequently. In whatever adjustments to the patch you want me to make to get past your objection, please make sure that it doesn't end up scope creeping. Jan > The patch introduces it in arch-specific header to not > block enabling of full Xen build for RISC-V. > > Signed-off-by: Oleksii Kurochko <oleksii.kuroc...@gmail.com> > --- > - update the commit message > --- > xen/arch/riscv/include/asm/cache.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/xen/arch/riscv/include/asm/cache.h > b/xen/arch/riscv/include/asm/cache.h > index 69573eb051..94bd94db53 100644 > --- a/xen/arch/riscv/include/asm/cache.h > +++ b/xen/arch/riscv/include/asm/cache.h > @@ -3,4 +3,6 @@ > #ifndef _ASM_RISCV_CACHE_H > #define _ASM_RISCV_CACHE_H > > +#define __read_mostly __section(".data.read_mostly") > + > #endif /* _ASM_RISCV_CACHE_H */