All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] x86: Add in-scope files under cpu/ to MISRA scans
@ 2026-11-18 17:17 Alejandro Vallejo
  2026-11-18 17:17 ` [PATCH 1/5] x86/cpu: Add break to early_cpu_init() switch Alejandro Vallejo
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Alejandro Vallejo @ 2026-11-18 17:17 UTC (permalink / raw)
  To: xen-devel
  Cc: Alejandro Vallejo, Jan Beulich, Andrew Cooper,
	Roger Pau Monné, Teddy Astie, Nicola Vetrini, Doug Goldstein,
	Stefano Stabellini, Anthony PERARD, Michal Orzel, Julien Grall

Hi,

The files under cpu/ are excluded from MISRA scans due to their Linux
provenance but they aren't kept in close sync. At best they get
semiregular updates (mwait_idle.c), but most often the files grow with
Xen specifics bops that get a free pass on MISRA scans merely due to
colocation with ancient Linux code. Some files just were never part of
Linux (hygon.c) to begin with, which makes the blanket exclusion even
less credible.

This series brings everything under the MISRA scan umbrella, with the
surprisingly few fixes involved.

eclair pipeline: https://gitlab.com/xen-project/people/agvallejo/xen/-/jobs/18149225087
regular pipeline (still running): https://gitlab.com/xen-project/people/agvallejo/xen/-/pipelines/3085381461

Alejandro Vallejo (5):
  x86/cpu: Add break to early_cpu_init() switch
  x86/mtrr: Address MISRA C Rules 5.3, 8.3 and 8.4
  x86/cpu: Use U suffixes on integer constants
  x86/amd: Make cpu_has_amd_erratum() non-variadic
  eclair/x86: Scan in-scope files inside cpu/

 .../eclair_analysis/ECLAIR/deviations.ecl     |  3 -
 docs/misra/exclude-list.json                  | 36 -----------
 xen/arch/x86/cpu/amd.c                        | 62 +++++++++----------
 xen/arch/x86/cpu/centaur.c                    |  4 +-
 xen/arch/x86/cpu/common.c                     | 49 ++++++++-------
 xen/arch/x86/cpu/hygon.c                      |  8 +--
 xen/arch/x86/cpu/mtrr/generic.c               |  6 +-
 xen/arch/x86/cpu/mtrr/main.c                  |  4 +-
 xen/arch/x86/include/asm/amd.h                | 11 ++--
 9 files changed, 73 insertions(+), 110 deletions(-)

-- 
2.43.0



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

end of thread, other threads:[~2026-11-19 10:41 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-18 17:17 [PATCH 0/5] x86: Add in-scope files under cpu/ to MISRA scans Alejandro Vallejo
2026-11-18 17:17 ` [PATCH 1/5] x86/cpu: Add break to early_cpu_init() switch Alejandro Vallejo
2026-11-18 18:45   ` Andrew Cooper
2026-11-18 17:17 ` [PATCH 2/5] x86/mtrr: Address MISRA C Rules 5.3, 8.3 and 8.4 Alejandro Vallejo
2026-11-18 18:46   ` Andrew Cooper
2026-11-18 17:17 ` [PATCH 3/5] x86/cpu: Use U suffixes on integer constants Alejandro Vallejo
2026-11-18 18:49   ` Andrew Cooper
2026-11-19  7:51     ` Jan Beulich
2026-11-18 17:17 ` [PATCH 4/5] x86/amd: Make cpu_has_amd_erratum() non-variadic Alejandro Vallejo
2026-11-18 19:06   ` Andrew Cooper
2026-11-19 10:41     ` Alejandro Vallejo
2026-11-18 17:17 ` [PATCH 5/5] eclair/x86: Scan in-scope files inside cpu/ Alejandro Vallejo
2026-11-18 17:32   ` Nicola Vetrini

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.