xen/spinlock: Adjust LOCK_DEBUG_INITVAL to placate MISRA

Resolves 160 MISRA R7.2 violations.

Fixes: c286bb93d2 ("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>
This commit is contained in:
Andrew Cooper committed 2024-04-11 13:23:08 +01:00
1 parent e5b93b70d5
commit 761358b9eb
1 file changed
+1 -1
+1 -1
View 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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.