Skip to content

x86: Misc MISRA fixes

Andrew Cooper xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5x86: Misra fixes for U/L suffixesxen/arch/x86/mm/shadow/common.c xen/arch/x86/pv/descriptor-tables.c xen/drivers/passthrough/vtd/iommu.h +2 more+6 -64 replies
2/5x86: Name parameters in function declarationsxen/arch/x86/mm/shadow/common.c xen/arch/x86/pv/emul-priv-op.c xen/include/xen/livepatch.h+6 -62 replies
3/5x86/ucode: Don't cast away const-ness in cmp_patch_id()xen/arch/x86/cpu/microcode/amd.c+1 -12 replies
4/5x86: Fix missing breaksxen/arch/x86/domain.c xen/arch/x86/mm/shadow/hvm.c xen/arch/x86/pv/emul-priv-op.c +3 more+5 -11 reply
5/5x86: Fix missing brackets in macrosxen/arch/x86/mm/shadow/multi.c xen/arch/x86/mm/shadow/private.h xen/drivers/passthrough/vtd/dmar.h +1 more+7 -78 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchNicola VetriniStefano Stabellini
1/5R-b
2/5R-b
3/5R-b R-b
4/5R-b
5/5R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] x86: Misc MISRA fixes

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(-)
Signature · 1 line
2.39.5