Skip to contentSkip to conversation

arm: constify atomic_read parameter

PATCH New Wei Liu 1 participant 1 message Aug 15, 2018

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 arm: constify atomic_read parameter

7d98594e6e added const to atomic_read. Do the same for Arm counterpart.

---
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
index 5a38c67fbd..73c53efc2b 100644
@@ -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