[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] arm/vgic: fix MISRA C 2012 Rule 20.7 violation
commit 7bb36cbb932da8599b8d57b984fa0e858a8ef7ce Author: Xenia Ragiadakou <burzalodowa@xxxxxxxxx> AuthorDate: Wed Aug 24 14:22:29 2022 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Wed Aug 24 14:22:29 2022 +0200 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@xxxxxxxxx> Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx> --- xen/arch/arm/include/asm/new_vgic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/include/asm/new_vgic.h b/xen/arch/arm/include/asm/new_vgic.h index ab57fcd91d..b7fa9ab11a 100644 --- a/xen/arch/arm/include/asm/new_vgic.h +++ b/xen/arch/arm/include/asm/new_vgic.h @@ -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 -- generated by git-patchbot for /home/xen/git/xen.git#staging
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |