[PATCH 0/5] x86: Misc MISRA fixes

Andrew Cooper posted 5 patches 10 hours ago
xen/arch/x86/cpu/microcode/amd.c    |  2 +-
xen/arch/x86/domain.c               |  1 +
xen/arch/x86/mm/shadow/common.c     | 12 ++++++------
xen/arch/x86/mm/shadow/hvm.c        |  1 +
xen/arch/x86/mm/shadow/multi.c      |  2 +-
xen/arch/x86/mm/shadow/private.h    |  6 +++---
xen/arch/x86/pv/descriptor-tables.c |  2 +-
xen/arch/x86/pv/emul-priv-op.c      |  3 ++-
xen/arch/x86/pv/emulate.c           |  1 +
xen/common/livepatch.c              |  1 -
xen/common/livepatch_elf.c          |  1 +
xen/drivers/passthrough/vtd/dmar.h  |  2 +-
xen/drivers/passthrough/vtd/iommu.h |  2 +-
xen/include/xen/elfstructs.h        |  2 +-
xen/include/xen/kexec.h             |  4 ++--
xen/include/xen/livepatch.h         |  2 +-
xen/include/xen/sizes.h             |  2 +-
17 files changed, 25 insertions(+), 21 deletions(-)
[PATCH 0/5] x86: Misc MISRA fixes
Posted by Andrew Cooper 10 hours ago
With the wider testing, some more violations have been spotted.  Address some
of the easier ones.

https://gitlab.com/xen-project/hardware/xen-staging/-/pipelines/2207505665

Andrew Cooper (5):
  x86: Misra fixes for U/L suffixes
  x86: Name parameters in function declarations
  x86/ucode: Don't cast away const-ness in cmp_patch_id()
  x86: Fix missing breaks
  x86: Fix missing brackets in macros

 xen/arch/x86/cpu/microcode/amd.c    |  2 +-
 xen/arch/x86/domain.c               |  1 +
 xen/arch/x86/mm/shadow/common.c     | 12 ++++++------
 xen/arch/x86/mm/shadow/hvm.c        |  1 +
 xen/arch/x86/mm/shadow/multi.c      |  2 +-
 xen/arch/x86/mm/shadow/private.h    |  6 +++---
 xen/arch/x86/pv/descriptor-tables.c |  2 +-
 xen/arch/x86/pv/emul-priv-op.c      |  3 ++-
 xen/arch/x86/pv/emulate.c           |  1 +
 xen/common/livepatch.c              |  1 -
 xen/common/livepatch_elf.c          |  1 +
 xen/drivers/passthrough/vtd/dmar.h  |  2 +-
 xen/drivers/passthrough/vtd/iommu.h |  2 +-
 xen/include/xen/elfstructs.h        |  2 +-
 xen/include/xen/kexec.h             |  4 ++--
 xen/include/xen/livepatch.h         |  2 +-
 xen/include/xen/sizes.h             |  2 +-
 17 files changed, 25 insertions(+), 21 deletions(-)

-- 
2.39.5