|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] xen/arm64: sysreg.h: Fix MISRA C 2012 Rule 20.7 violation
Hi Julien, On 7/28/22 16:56, Julien Grall wrote: Hi, On 28/07/2022 14:49, Xenia Ragiadakou wrote:The macro parameter 'v' is used as an expression and needs to be enclosed inparentheses. Signed-off-by: Xenia Ragiadakou <burzalodowa@xxxxxxxxx> --- xen/arch/arm/include/asm/arm64/sysregs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)diff --git a/xen/arch/arm/include/asm/arm64/sysregs.h b/xen/arch/arm/include/asm/arm64/sysregs.h Here v is supposed to be used as an expression. So maybe the rule wants to enforce that in the macro we will pass an expression and not multiple statements (?) ... not sure.
-- Xenia
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |