Re: [PATCH 09/17] xen: address violations of MISRA C:2012 Directive 4.10

2024-07-12 Thread Stefano Stabellini
On Wed, 3 Jul 2024, Jan Beulich wrote: > On 01.07.2024 15:36, Alessandro Zucchelli wrote: > > --- a/xen/include/xen/err.h > > +++ b/xen/include/xen/err.h > > @@ -1,5 +1,6 @@ > > -#if !defined(__XEN_ERR_H__) && !defined(__ASSEMBLY__) > > -#define __XEN_ERR_H__ > > +#ifndef INCLUDE_XEN_ERR_H > > +#de

Re: [PATCH 09/17] xen: address violations of MISRA C:2012 Directive 4.10

2024-07-03 Thread Jan Beulich
On 01.07.2024 15:36, Alessandro Zucchelli wrote: > --- a/xen/include/xen/err.h > +++ b/xen/include/xen/err.h > @@ -1,5 +1,6 @@ > -#if !defined(__XEN_ERR_H__) && !defined(__ASSEMBLY__) > -#define __XEN_ERR_H__ > +#ifndef INCLUDE_XEN_ERR_H > +#define INCLUDE_XEN_ERR_H There once was a document (or w

[PATCH 09/17] xen: address violations of MISRA C:2012 Directive 4.10

2024-07-01 Thread Alessandro Zucchelli
From: Simone Ballarin Amend inclusion guards to address violations of MISRA C:2012 Directive 4.10 ("Precautions shall be taken in order to prevent the contents of a header file being included more than once"). Inclusion guards must appear at the beginning of the headers (comments are permitted a