mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
e5b93b70d5
commit
761358b9eb
1 file changed
+1
-1
@@ -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)
|
||||
|
||||