arm: constify atomic_read parameter
PATCH 1/1 arm: constify atomic_read parameter
7d98594e6e added const to atomic_read. Do the same for Arm counterpart.
Signed-off-by Wei Liu <[email protected]>
---
Cc: Stefano Stabellini <[email protected]>
Cc: Julien Grall <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>
Breakage from XSA-273 changes.
--- xen/include/asm-arm/atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/include/asm-arm/atomic.h +1 -1
@@ -110,7 +110,7 @@ typedef struct { int counter; } atomic_t;* strex/ldrex monitor on some implementations. The reason we can use it for * atomic_set() is the clrex or dummy strex done on every exception return. */ -static inline int atomic_read (atomic_t *v) +static inline int atomic_read (const atomic_t *v) {return *(volatile int *)&v->counter; }
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel