Re: [XEN PATCH 13/13] xen: fixed violations of MISRA C:2012 Rule 7.2

2023-06-20 Thread Luca Fancellu
> On 20 Jun 2023, at 14:59, Simone Ballarin wrote: > > Hi, > > Il giorno mar 20 giu 2023 alle ore 15:20 Jan Beulich ha > scritto: > On 20.06.2023 12:35, Simone Ballarin wrote: > > --- a/xen/common/gunzip.c > > +++ b/xen/common/gunzip.c > > @@ -11,7 +11,7 @@ static unsigned char *__initdata

Re: [XEN PATCH 13/13] xen: fixed violations of MISRA C:2012 Rule 7.2

2023-06-20 Thread Simone Ballarin
Hi, Il giorno mar 20 giu 2023 alle ore 15:20 Jan Beulich ha scritto: > On 20.06.2023 12:35, Simone Ballarin wrote: > > --- a/xen/common/gunzip.c > > +++ b/xen/common/gunzip.c > > @@ -11,7 +11,7 @@ static unsigned char *__initdata window; > > static memptr __initdata free_mem_ptr; > > static me

Re: [XEN PATCH 13/13] xen: fixed violations of MISRA C:2012 Rule 7.2

2023-06-20 Thread Jan Beulich
On 20.06.2023 12:35, Simone Ballarin wrote: > --- a/xen/common/gunzip.c > +++ b/xen/common/gunzip.c > @@ -11,7 +11,7 @@ static unsigned char *__initdata window; > static memptr __initdata free_mem_ptr; > static memptr __initdata free_mem_end_ptr; > > -#define WSIZE 0x8000 > +#defi

[XEN PATCH 13/13] xen: fixed violations of MISRA C:2012 Rule 7.2

2023-06-20 Thread Simone Ballarin
From: Gianluca Luparini The xen sources contains violations of MISRA C:2012 Rule 7.2 whose headline states: "A "u" or "U" suffix shall be applied to all integer constants that are represented in an unsigned type". I propose to use "U" as a suffix to explicitly state when an integer constant i