[PATCH 0/5] x86: Add in-scope files under cpu/ to MISRA scans

Alejandro Vallejo posted 5 patches 5 days, 5 hours ago
There is a newer version of this series
.../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(-)
[PATCH 0/5] x86: Add in-scope files under cpu/ to MISRA scans
Posted by Alejandro Vallejo 5 days, 5 hours ago
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