xen/spinlock: Adjust LOCK_DEBUG_INITVAL to placate MISRA
PATCH 1/1 xen/spinlock: Adjust LOCK_DEBUG_INITVAL to placate MISRA
Resolves an R7.2 violation.
---
CC: George Dunlap <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Julien Grall <[email protected]>
CC: Juergen Gross <[email protected]>
CC: [email protected] <[email protected]>
CC: Roberto Bagnara <[email protected]>
CC: Federico Serafini <[email protected]>
CC: Nicola Vetrini <[email protected]>
--- xen/include/xen/spinlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/include/xen/spinlock.h +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)
base-commit: 0e7ea8ca5fc9bce9248414f6aaf2dc861abd45d9
prerequisite-patch-id: 8d06e56c5d8a52f1387e1f5a7fce6a94b8c4a1ed
prerequisite-patch-id: 13355d26254b979c79de456c9a6ea6a9c639ba63
Signature · 1 line
2.30.2
Quoted 8 lines · Andrew Cooper
Resolves an R7.2 violation.
Fixes c286bb93d20c ("xen/spinlock: support higher number of cpus")Signed-off-by Andrew Cooper <[email protected]>
Yes makes sense
Quoted 4 lines · Andrew Cooper
Resolves an R7.2 violation.
Fixes c286bb93d20c ("xen/spinlock: support higher number of cpus")Signed-off-by Andrew Cooper <[email protected]>
Quoted 2 lines · Andrew Cooper
Resolves an R7.2 violation.
Thanks, I was going to suggest the same change. This will resolve the failure of the CI MISRA analysis on GitLab.
Quoted 33 lines
Fixes c286bb93d20c ("xen/spinlock: support higher number of cpus")Signed-off-by Andrew Cooper <[email protected]>---
CC: George Dunlap <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Julien Grall <[email protected]>
CC: Juergen Gross <[email protected]>
CC: [email protected] <[email protected]>
CC: Roberto Bagnara <[email protected]>
CC: Federico Serafini <[email protected]>
CC: Nicola Vetrini <[email protected]>--- xen/include/xen/spinlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)xen/include/xen/spinlock.h +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)base-commit:
0e7ea8ca5fc9bce9248414f6aaf2dc861abd45d9
prerequisite-patch-id:8d06e56c5d8a52f1387e1f5a7fce6a94b8c4a1ed
prerequisite-patch-id:13355d26254b979c79de456c9a6ea6a9c639ba63
Signature · 2 lines
Nicola Vetrini, BSc Software Engineer, BUGSENG srl (https://bugseng.com)