]> xenbits.xensource.com Git - xen.git/commitdiff
arm: constify atomic_read parameter
authorWei Liu <wei.liu2@citrix.com>
Wed, 15 Aug 2018 08:28:36 +0000 (09:28 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 15 Aug 2018 09:27:35 +0000 (10:27 +0100)
ded2a37d63 added const to atomic_read. Do the same for Arm
counterpart.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/include/asm-arm/atomic.h

index 29ab265f001585782fbcd76ea2a25ee24c9ff7c7..de22fd55d73d1e507909475242a0e598df41bf3d 100644 (file)
@@ -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;
 }