Mailing List Archive

[xen staging] xen/spinlock: Adjust LOCK_DEBUG_INITVAL to placate MISRA
commit 761358b9ebd8584e7fe9c66dbfa477f644617478
Author: Andrew Cooper <andrew.cooper3@citrix.com>
AuthorDate: Wed Apr 10 20:32:24 2024 +0100
Commit: Andrew Cooper <andrew.cooper3@citrix.com>
CommitDate: Thu Apr 11 13:23:08 2024 +0100

xen/spinlock: Adjust LOCK_DEBUG_INITVAL to placate MISRA

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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/include/xen/spinlock.h b/xen/include/xen/spinlock.h
index db00a24646..18793c5e29 100644
--- a/xen/include/xen/spinlock.h
+++ b/xen/include/xen/spinlock.h
@@ -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)
--
generated by git-patchbot for /home/xen/git/xen.git#staging