Re: [XEN PATCH v2] x86/mm address violations of MISRA C:2012 Rule 5.3

2024-09-09 Thread Jan Beulich
On 09.09.2024 15:36, Alessandro Zucchelli wrote: > This addresses violations of MISRA C:2012 Rule 5.3 which states as > following: An identifier declared in an inner scope shall not hide an > identifier declared in an outer scope. > > In /x86/mm.c the object struct e820entry *e820 hides an identif

Re: [XEN PATCH v2] x86/mm address violations of MISRA C:2012 Rule 5.3

2024-09-09 Thread Jan Beulich
On 09.09.2024 15:46, Frediano Ziglio wrote: >> --- a/xen/arch/x86/mm.c >> +++ b/xen/arch/x86/mm.c >> @@ -4708,7 +4708,7 @@ long arch_memory_op(unsigned long cmd, >> XEN_GUEST_HANDLE_PARAM(void) arg) >> { >> struct xen_foreign_memory_map fmap; >> struct domain *d; >> -

Re: [XEN PATCH v2] x86/mm address violations of MISRA C:2012 Rule 5.3

2024-09-09 Thread Frediano Ziglio
On Mon, Sep 9, 2024 at 2:36 PM Alessandro Zucchelli < alessandro.zucche...@bugseng.com> wrote: > This addresses violations of MISRA C:2012 Rule 5.3 which states as > following: An identifier declared in an inner scope shall not hide an > identifier declared in an outer scope. > > In /x86/mm.c the

[XEN PATCH v2] x86/mm address violations of MISRA C:2012 Rule 5.3

2024-09-09 Thread Alessandro Zucchelli
This addresses violations of MISRA C:2012 Rule 5.3 which states as following: An identifier declared in an inner scope shall not hide an identifier declared in an outer scope. In /x86/mm.c the object struct e820entry *e820 hides an identifier with the same name declared in x86/include/asm/e820.h.