[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] arm/gic: fix MISRA C 2012 Rule 20.7 violation
commit 4a2217c97024ccaf92adb6a08f4d340a803af352 Author: Xenia Ragiadakou <burzalodowa@xxxxxxxxx> AuthorDate: Thu Aug 11 11:48:12 2022 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Thu Aug 11 11:48:12 2022 +0200 arm/gic: fix MISRA C 2012 Rule 20.7 violation In GIC_PRI_TO_GUEST(), add parentheses around the macro parameter 'pri' to prevent against unintended expansions and realign comment. Signed-off-by: Xenia Ragiadakou <burzalodowa@xxxxxxxxx> Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx> --- xen/arch/arm/include/asm/gic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/include/asm/gic.h b/xen/arch/arm/include/asm/gic.h index b3c6c67933..3692fae393 100644 --- a/xen/arch/arm/include/asm/gic.h +++ b/xen/arch/arm/include/asm/gic.h @@ -152,8 +152,8 @@ #define GIC_PRI_IPI_ALL ((GIC_PRI_IPI << 24) | (GIC_PRI_IPI << 16) |\ (GIC_PRI_IPI << 8) | GIC_PRI_IPI) -#define GIC_PRI_TO_GUEST(pri) (pri >> 3) /* GICH_LR and GICH_VMCR only support - 5 bits for guest irq priority */ +#define GIC_PRI_TO_GUEST(pri) ((pri) >> 3) /* GICH_LR and GICH_VMCR only support + 5 bits for guest irq priority */ #define GICH_LR_PENDING 1 #define GICH_LR_ACTIVE 2 -- generated by git-patchbot for /home/xen/git/xen.git#staging
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |