]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
xen/spinlock: Adjust LOCK_DEBUG_INITVAL to placate MISRA
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 10 Apr 2024 19:32:24 +0000 (20:32 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 11 Apr 2024 12:23:08 +0000 (13:23 +0100)
Resolves 160 MISRA R7.2 violations.

Fixes: c286bb93d20c ("xen/spinlock: support higher number of cpus")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
xen/include/xen/spinlock.h

index db00a24646bd9df00c6cfd51f2e77fd75ac212ea..18793c5e29cb1a0b2ba5be9a00c77dbd0be014b3 100644 (file)
@@ -13,7 +13,7 @@
 #ifdef CONFIG_DEBUG_LOCKS
 union lock_debug {
     uint32_t val;
-#define LOCK_DEBUG_INITVAL 0xffffffff
+#define LOCK_DEBUG_INITVAL 0xffffffffU
     struct {
         unsigned int cpu:SPINLOCK_CPU_BITS;
 #define LOCK_DEBUG_PAD_BITS (30 - SPINLOCK_CPU_BITS)