[PATCH 00/12] xen: Misc MISRA fixes for *-allcode targets

Andrew Cooper posted 12 patches 1 week, 3 days ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20260220214653.3497384-1-andrew.cooper3@citrix.com
xen/arch/arm/acpi/boot.c                 |  4 ++--
xen/arch/arm/gic-v3-its.c                |  2 +-
xen/arch/arm/include/asm/pci.h           |  2 +-
xen/arch/arm/include/asm/tee/optee_msg.h | 16 +++++++--------
xen/arch/arm/include/asm/tee/optee_smc.h |  8 ++++----
xen/arch/arm/pci/pci-access.c            | 10 ++++++----
xen/arch/arm/pci/pci-designware.c        |  4 +++-
xen/arch/arm/pci/pci-designware.h        |  5 ++---
xen/arch/arm/tee/optee.c                 |  7 ++++---
xen/arch/x86/boot/cmdline.c              |  3 +--
xen/arch/x86/boot/reloc.c                |  3 +--
xen/arch/x86/guest/xen/pvh-boot.c        |  2 +-
xen/arch/x86/guest/xen/xen.c             |  4 ++--
xen/arch/x86/include/asm/bootinfo.h      |  2 +-
xen/arch/x86/include/asm/compat.h        |  2 +-
xen/arch/x86/include/asm/config.h        |  2 +-
xen/arch/x86/include/asm/guest/hyperv.h  |  2 +-
xen/arch/x86/include/asm/p2m.h           |  2 +-
xen/arch/x86/include/asm/pv/mm.h         |  8 +++++++-
xen/arch/x86/include/asm/pv/traps.h      |  6 ++----
xen/arch/x86/mm/mem_paging.c             |  8 +++++---
xen/arch/x86/mm/shadow/common.c          |  2 +-
xen/arch/x86/mm/shadow/multi.c           |  2 +-
xen/arch/x86/mm/shadow/set.c             |  4 ++--
xen/arch/x86/pv/emul-gate-op.c           |  4 +++-
xen/arch/x86/pv/emul-inv-op.c            |  1 +
xen/arch/x86/pv/emul-priv-op.c           |  1 +
xen/arch/x86/pv/emulate.c                |  1 +
xen/arch/x86/pv/grant_table.c            |  1 +
xen/arch/x86/pv/hypercall.c              |  2 +-
xen/arch/x86/pv/mm.c                     |  1 +
xen/arch/x86/pv/ro-page-fault.c          |  1 +
xen/arch/x86/pv/traps.c                  |  1 +
xen/arch/x86/tboot.c                     | 10 +++++-----
xen/arch/x86/traps.c                     |  3 +--
xen/arch/x86/x86_64/machine_kexec.c      |  3 ++-
xen/common/argo.c                        | 12 ++++++------
xen/common/kimage.c                      | 11 ++++++-----
xen/common/livepatch.c                   | 11 ++++++-----
xen/common/stack-protector.c             |  1 +
xen/crypto/vmac.c                        | 12 ++++++------
xen/drivers/char/xhci-dbc.c              | 14 ++++++-------
xen/include/crypto/rijndael.h            | 16 +++++++--------
xen/include/crypto/vmac.h                | 25 +-----------------------
xen/include/xen/acpi.h                   |  2 +-
xen/include/xen/libfdt/libfdt.h          |  6 +++---
xen/include/xen/stack-protector.h        |  2 ++
47 files changed, 125 insertions(+), 126 deletions(-)
[PATCH 00/12] xen: Misc MISRA fixes for *-allcode targets
Posted by Andrew Cooper 1 week, 3 days ago
https://gitlab.com/xen-project/hardware/xen-staging/-/pipelines/2340465777

This fixes some low hanging fruit.  There's still more work to do in both the
x86 and ARM -allcode targets

Andrew Cooper (12):
  arm: Use __func__ in acpi_boot_table_init()
  xen/treewide: Adjust suffixes on integer literals
  xen/argo: Fix MISRA violations around function parameters
  xen/treewide: Adjust parameter names and types
  x86: Adjust annotations of asm-used identifiers
  xen: Include suitable headers to make declarations visible
  xen/vmac: Const the key parameter of vmac_set_key()
  arm/pci-designware: Fix MISRA violations
  x86/shadow: Rework write_atomic() call in shadow_write_entries()
  xen: Adjust break/fallthrough statements
  xen: Bracket uses of macro parameters
  xen/vmac: Delete STDINT block in vmac.h

 xen/arch/arm/acpi/boot.c                 |  4 ++--
 xen/arch/arm/gic-v3-its.c                |  2 +-
 xen/arch/arm/include/asm/pci.h           |  2 +-
 xen/arch/arm/include/asm/tee/optee_msg.h | 16 +++++++--------
 xen/arch/arm/include/asm/tee/optee_smc.h |  8 ++++----
 xen/arch/arm/pci/pci-access.c            | 10 ++++++----
 xen/arch/arm/pci/pci-designware.c        |  4 +++-
 xen/arch/arm/pci/pci-designware.h        |  5 ++---
 xen/arch/arm/tee/optee.c                 |  7 ++++---
 xen/arch/x86/boot/cmdline.c              |  3 +--
 xen/arch/x86/boot/reloc.c                |  3 +--
 xen/arch/x86/guest/xen/pvh-boot.c        |  2 +-
 xen/arch/x86/guest/xen/xen.c             |  4 ++--
 xen/arch/x86/include/asm/bootinfo.h      |  2 +-
 xen/arch/x86/include/asm/compat.h        |  2 +-
 xen/arch/x86/include/asm/config.h        |  2 +-
 xen/arch/x86/include/asm/guest/hyperv.h  |  2 +-
 xen/arch/x86/include/asm/p2m.h           |  2 +-
 xen/arch/x86/include/asm/pv/mm.h         |  8 +++++++-
 xen/arch/x86/include/asm/pv/traps.h      |  6 ++----
 xen/arch/x86/mm/mem_paging.c             |  8 +++++---
 xen/arch/x86/mm/shadow/common.c          |  2 +-
 xen/arch/x86/mm/shadow/multi.c           |  2 +-
 xen/arch/x86/mm/shadow/set.c             |  4 ++--
 xen/arch/x86/pv/emul-gate-op.c           |  4 +++-
 xen/arch/x86/pv/emul-inv-op.c            |  1 +
 xen/arch/x86/pv/emul-priv-op.c           |  1 +
 xen/arch/x86/pv/emulate.c                |  1 +
 xen/arch/x86/pv/grant_table.c            |  1 +
 xen/arch/x86/pv/hypercall.c              |  2 +-
 xen/arch/x86/pv/mm.c                     |  1 +
 xen/arch/x86/pv/ro-page-fault.c          |  1 +
 xen/arch/x86/pv/traps.c                  |  1 +
 xen/arch/x86/tboot.c                     | 10 +++++-----
 xen/arch/x86/traps.c                     |  3 +--
 xen/arch/x86/x86_64/machine_kexec.c      |  3 ++-
 xen/common/argo.c                        | 12 ++++++------
 xen/common/kimage.c                      | 11 ++++++-----
 xen/common/livepatch.c                   | 11 ++++++-----
 xen/common/stack-protector.c             |  1 +
 xen/crypto/vmac.c                        | 12 ++++++------
 xen/drivers/char/xhci-dbc.c              | 14 ++++++-------
 xen/include/crypto/rijndael.h            | 16 +++++++--------
 xen/include/crypto/vmac.h                | 25 +-----------------------
 xen/include/xen/acpi.h                   |  2 +-
 xen/include/xen/libfdt/libfdt.h          |  6 +++---
 xen/include/xen/stack-protector.h        |  2 ++
 47 files changed, 125 insertions(+), 126 deletions(-)

-- 
2.39.5