diff mbox series

[v1,45/57] xen/riscv: add definition of __read_mostly

Message ID e11462a0dd6e71884aa114493d75674411e26701.1692181079.git.oleksii.kurochko@gmail.com (mailing list archive)
State New, archived
Headers show
Series Enable build of full Xen for RISC-V | expand

Commit Message

Oleksii Kurochko Aug. 16, 2023, 10:19 a.m. UTC
Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
---
 xen/arch/riscv/include/asm/cache.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Jan Beulich Aug. 22, 2023, 6:22 a.m. UTC | #1
On 16.08.2023 12:19, Oleksii Kurochko wrote:
> --- 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")

I did already post a patch eliminating the need for this. It's just that
Andrew doesn't like the new placement of the construct, yet neither
suggested a reasonable alternative nor showed willingness to accept the
change as an intermediate step.

Jan
Oleksii Kurochko Aug. 22, 2023, 3:07 p.m. UTC | #2
On Tue, 2023-08-22 at 08:22 +0200, Jan Beulich wrote:
> I did already post a patch eliminating the need for this. It's just
> that
> Andrew doesn't like the new placement of the construct, yet neither
> suggested a reasonable alternative nor showed willingness to accept
> the
> change as an intermediate step.
Thanks for notifying me.

I'll check your patch.

~ Oleksii
diff mbox series

Patch

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