All of lore.kernel.org
 help / color / mirror / Atom feed
* [XEN PATCH 0/8] xen: address MISRA C:2012 Rule 8.4
@ 2023-08-09 11:02 Nicola Vetrini
  2023-08-09 11:02 ` [XEN PATCH 1/8] arm/efi: " Nicola Vetrini
                   ` (7 more replies)
  0 siblings, 8 replies; 33+ messages in thread
From: Nicola Vetrini @ 2023-08-09 11:02 UTC (permalink / raw)
  To: xen-devel
  Cc: sstabellini, michal.orzel, xenia.ragiadakou, ayan.kumar.halder,
	consulting, Nicola Vetrini, Julien Grall, Bertrand Marquis,
	Volodymyr Babchuk, Andrew Cooper, George Dunlap, Jan Beulich,
	Wei Liu, Roger Pau Monné

Rule states the following:
"A compatible declaration shall be visible when an object or function with
external linkage is defined".

This series deals with violations concerning functions and variables used by C
code (thus not used only within asm). The resolution strategies are as follows:

1. make the functions/variables static
2. include the header that contains the compatible declaration, or add one in
   the header if that's not the case.

No functional change.

Additional notes:
- other cases, such as functions/variables used only in asm code will be possibly
  dealt with in future patches.
- functions in 'gcov_base.c' are deviated, since they are called only from code
  generated by gcc in a particular non-release build configuration;
- variables in 'xen/include/acpi/acglobal.h' are deviated temporarily, since
  it's uncertain whether modifying the include pattern to be compliant with the
	rule would introduce subtle bugs.

Nicola Vetrini (8):
  arm/efi: address MISRA C:2012 Rule 8.4
  xen/memory: address MISRA C:2012 Rule 8.4
  xen: address MISRA C:2012 Rule 8.4
  xen/arm: address MISRA C:2012 Rule 8.4
  x86: address MISRA C:2012 Rule 8.4
  xen/arm: mm: address MISRA C:2012 Rule 8.4
  x86/i8259: address MISRA C:2012 Rule 8.4
  x86/nmi: address MISRA C:2012 Rule 8.4

 xen/arch/arm/efi/efi-boot.h       | 2 +-
 xen/arch/arm/include/asm/mm.h     | 3 +++
 xen/arch/arm/setup.c              | 1 +
 xen/arch/arm/time.c               | 1 +
 xen/arch/x86/cpu/mcheck/mce.c     | 2 +-
 xen/arch/x86/cpu/mcheck/mce_amd.c | 2 +-
 xen/arch/x86/cpu/microcode/core.c | 2 +-
 xen/arch/x86/i8259.c              | 1 +
 xen/arch/x86/nmi.c                | 3 ++-
 xen/arch/x86/spec_ctrl.c          | 4 ++--
 xen/common/kernel.c               | 2 +-
 xen/common/memory.c               | 2 +-
 xen/include/xen/cper.h            | 3 +--
 xen/include/xen/time.h            | 1 +
 14 files changed, 18 insertions(+), 11 deletions(-)

--
2.34.1


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

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

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-09 11:02 [XEN PATCH 0/8] xen: address MISRA C:2012 Rule 8.4 Nicola Vetrini
2023-08-09 11:02 ` [XEN PATCH 1/8] arm/efi: " Nicola Vetrini
2023-08-09 13:46   ` Luca Fancellu
2023-08-09 20:03     ` Stefano Stabellini
2023-08-09 11:02 ` [XEN PATCH 2/8] xen/memory: " Nicola Vetrini
2023-08-09 13:34   ` Luca Fancellu
2023-08-09 13:41     ` Jan Beulich
2023-08-09 20:04     ` Stefano Stabellini
2023-08-09 11:02 ` [XEN PATCH 3/8] xen: " Nicola Vetrini
2023-08-09 13:50   ` Luca Fancellu
2023-08-09 14:06     ` Jan Beulich
2023-08-09 14:14       ` Luca Fancellu
2023-08-09 20:06         ` Stefano Stabellini
2023-08-09 14:14     ` Nicola Vetrini
2023-08-09 11:02 ` [XEN PATCH 4/8] xen/arm: " Nicola Vetrini
2023-08-09 12:42   ` Jan Beulich
2023-08-09 12:51     ` Luca Fancellu
2023-08-09 13:25       ` Nicola Vetrini
2023-08-09 13:08     ` Nicola Vetrini
2023-08-09 20:10     ` Stefano Stabellini
2023-08-09 11:02 ` [XEN PATCH 5/8] x86: " Nicola Vetrini
2023-08-09 13:48   ` Jan Beulich
2023-08-09 11:02 ` [XEN PATCH 6/8] xen/arm: mm: " Nicola Vetrini
2023-08-09 13:43   ` Luca Fancellu
2023-08-09 20:11     ` Stefano Stabellini
2023-08-09 11:02 ` [XEN PATCH 7/8] x86/i8259: " Nicola Vetrini
2023-08-09 12:52   ` Jan Beulich
2023-08-09 14:17     ` Nicola Vetrini
2023-08-09 14:22       ` Jan Beulich
2023-08-09 20:15         ` Stefano Stabellini
2023-08-10  8:33           ` Jan Beulich
2023-08-09 11:02 ` [XEN PATCH 8/8] x86/nmi: " Nicola Vetrini
2023-08-09 12:58   ` Jan Beulich

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.