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

Oleksii Kurochko posted 57 patches 2 years, 4 months ago
There is a newer version of this series
[PATCH v1 45/57] xen/riscv: add definition of __read_mostly
Posted by Oleksii Kurochko 2 years, 4 months ago
Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
---
 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 */
-- 
2.41.0
Re: [PATCH v1 45/57] xen/riscv: add definition of __read_mostly
Posted by Jan Beulich 2 years, 3 months ago
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
Re: [PATCH v1 45/57] xen/riscv: add definition of __read_mostly
Posted by Oleksii 2 years, 3 months ago
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