mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
arm/vgic: fix MISRA C 2012 Rule 20.7 violation
In macro VGIC_V3_LR_INDEX(), add parentheses around the macro parameter to prevent against unintended expansions. Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
1 parent
335f3f62b6
commit
7bb36cbb93
1 file changed
+1
-1
@@ -43,7 +43,7 @@ enum vgic_type {
|
||||
|
||||
#define VGIC_V2_MAX_LRS (1 << 6)
|
||||
#define VGIC_V3_MAX_LRS 16
|
||||
#define VGIC_V3_LR_INDEX(lr) (VGIC_V3_MAX_LRS - 1 - lr)
|
||||
#define VGIC_V3_LR_INDEX(lr) (VGIC_V3_MAX_LRS - 1 - (lr))
|
||||
|
||||
#define VGIC_CONFIG_EDGE false
|
||||
#define VGIC_CONFIG_LEVEL true
|
||||
|
||||