All of lore.kernel.org
 help / color / mirror / Atom feed
* [XEN PATCH v2 00/10] address violations of MISRA C:2012 Directive 4.10
@ 2023-09-12  9:36 Simone Ballarin
  2023-09-12  9:36 ` [XEN PATCH v2 01/10] misra: add deviation for headers that explicitly avoid guards Simone Ballarin
                   ` (10 more replies)
  0 siblings, 11 replies; 54+ messages in thread
From: Simone Ballarin @ 2023-09-12  9:36 UTC (permalink / raw)
  To: xen-devel
  Cc: consulting, sstabellini, Simone Ballarin, Andrew Cooper,
	George Dunlap, Jan Beulich, Julien Grall, Wei Liu,
	Roger Pau Monné, Doug Goldstein, Bertrand Marquis,
	Volodymyr Babchuk

Add or move 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 anywhere) and the #if directive cannot
be used for other checks.

Simone Ballarin (10):
  misra: add deviation for headers that explicitly avoid guards
  misra: modify deviations for empty and generated headers
  misra: add deviations for direct inclusion guards
  xen/arm: address violations of MISRA C:2012 Directive 4.10
  xen/x86: address violations of MISRA C:2012 Directive 4.10
  x86/EFI: address violations of MISRA C:2012 Directive 4.10
  xen/common: address violations of MISRA C:2012 Directive 4.10
  xen/efi: address violations of MISRA C:2012 Directive 4.10
  xen: address violations of MISRA C:2012 Directive 4.10
  x86/asm: address violations of MISRA C:2012 Directive 4.10

 .../eclair_analysis/ECLAIR/deviations.ecl     |  7 ----
 docs/misra/safe.json                          | 32 +++++++++++++++++++
 xen/arch/arm/efi/efi-boot.h                   |  6 ++++
 xen/arch/arm/efi/runtime.h                    |  1 +
 xen/arch/arm/include/asm/hypercall.h          |  1 +
 xen/arch/x86/Makefile                         |  8 ++---
 xen/arch/x86/cpu/cpu.h                        |  5 +++
 xen/arch/x86/efi/runtime.h                    |  5 +++
 xen/arch/x86/include/asm/compat.h             |  5 +++
 xen/arch/x86/include/asm/cpufeatures.h        |  5 +--
 xen/arch/x86/include/asm/efibind.h            |  5 +++
 xen/arch/x86/include/asm/hypercall.h          |  1 +
 xen/arch/x86/x86_64/mmconfig.h                |  5 +++
 xen/arch/x86/x86_emulate/private.h            |  5 +++
 xen/common/decompress.h                       |  5 +++
 xen/common/efi/efi.h                          |  5 +++
 xen/common/event_channel.h                    |  5 +++
 xen/include/Makefile                          | 10 ++++--
 xen/include/public/arch-x86/cpufeatureset.h   |  1 +
 xen/include/public/errno.h                    |  1 +
 xen/include/xen/err.h                         |  4 ++-
 xen/include/xen/pci_ids.h                     |  5 +++
 xen/include/xen/softirq.h                     |  4 ++-
 xen/include/xen/unaligned.h                   |  1 +
 xen/include/xen/vmap.h                        |  4 ++-
 25 files changed, 115 insertions(+), 21 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 54+ messages in thread

end of thread, other threads:[~2023-10-27  7:34 UTC | newest]

Thread overview: 54+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-12  9:36 [XEN PATCH v2 00/10] address violations of MISRA C:2012 Directive 4.10 Simone Ballarin
2023-09-12  9:36 ` [XEN PATCH v2 01/10] misra: add deviation for headers that explicitly avoid guards Simone Ballarin
2023-09-12  9:46   ` Jan Beulich
2023-09-12  9:49     ` Simone Ballarin
2023-09-12  9:36 ` [XEN PATCH v2 02/10] misra: modify deviations for empty and generated headers Simone Ballarin
2023-09-12  9:49   ` Jan Beulich
2023-09-12  9:36 ` [XEN PATCH v2 03/10] misra: add deviations for direct inclusion guards Simone Ballarin
2023-09-12  9:52   ` Jan Beulich
2023-09-12 10:05     ` Simone Ballarin
2023-09-12 10:19       ` Jan Beulich
2023-09-12 15:58         ` Simone Ballarin
2023-09-12  9:36 ` [XEN PATCH v2 04/10] xen/arm: address violations of MISRA C:2012 Directive 4.10 Simone Ballarin
2023-09-13  1:12   ` Stefano Stabellini
2023-09-12  9:36 ` [XEN PATCH v2 05/10] xen/x86: " Simone Ballarin
2023-09-12  9:36 ` [XEN PATCH v2 06/10] x86/EFI: " Simone Ballarin
2023-09-12 10:00   ` Jan Beulich
2023-09-12  9:36 ` [XEN PATCH v2 07/10] xen/common: " Simone Ballarin
2023-09-13  1:15   ` Stefano Stabellini
2023-09-12  9:36 ` [XEN PATCH v2 08/10] xen/efi: " Simone Ballarin
2023-09-13  1:16   ` Stefano Stabellini
2023-09-12  9:36 ` [XEN PATCH v2 09/10] xen: " Simone Ballarin
2023-09-13  1:18   ` Stefano Stabellini
2023-09-12  9:36 ` [XEN PATCH v2 10/10] x86/asm: " Simone Ballarin
2023-09-13  1:25   ` Stefano Stabellini
2023-09-13  8:02 ` [XEN PATCH v2 00/10] " Jan Beulich
2023-09-28 12:46   ` Simone Ballarin
2023-09-28 12:51     ` Jan Beulich
2023-09-28 13:17       ` Simone Ballarin
2023-09-28 15:00         ` Jan Beulich
2023-09-28 15:39           ` Simone Ballarin
2023-09-28 22:24           ` Stefano Stabellini
2023-09-29  7:54             ` Simone Ballarin
2023-09-29 20:41               ` Stefano Stabellini
2023-10-16 11:26             ` Jan Beulich
2023-10-18  0:48               ` Stefano Stabellini
2023-10-18  5:58                 ` Jan Beulich
2023-10-19  0:44                   ` Stefano Stabellini
2023-10-19  6:51                     ` Jan Beulich
2023-10-19 16:19                       ` Stefano Stabellini
2023-10-20  6:32                         ` Jan Beulich
2023-10-20 23:26                           ` Stefano Stabellini
2023-10-23  6:31                             ` Jan Beulich
2023-10-23 20:47                               ` Stefano Stabellini
2023-10-24 13:31                                 ` Julien Grall
2023-10-24 14:25                                   ` Jan Beulich
2023-10-24 19:59                                     ` Stefano Stabellini
2023-10-25  8:18                                       ` Jan Beulich
2023-10-25 15:58                                         ` Julien Grall
2023-10-25 16:01                                           ` Jan Beulich
2023-10-25 16:47                                             ` Julien Grall
2023-10-25 21:12                                               ` Stefano Stabellini
2023-10-26  7:07                                                 ` Jan Beulich
2023-10-26 22:50                                                   ` Stefano Stabellini
2023-10-27  7:34                                                     ` Simone Ballarin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.