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

2024-07-01 Thread Nicola Vetrini
On 2024-07-01 10:27, Jan Beulich wrote: On 27.06.2024 02:57, Stefano Stabellini wrote: On Wed, 26 Jun 2024, Nicola Vetrini wrote: From: 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

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

2024-07-01 Thread Jan Beulich
On 27.06.2024 02:57, Stefano Stabellini wrote: > On Wed, 26 Jun 2024, Nicola Vetrini wrote: >> From: 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 o

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

2024-06-26 Thread Stefano Stabellini
On Wed, 26 Jun 2024, Nicola Vetrini wrote: > From: 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 this case the gloabl variable bei

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

2024-06-26 Thread Nicola Vetrini
From: 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 this case the gloabl variable being shadowed is the global static struct mctctl in this fi