Skip to content

xen: Misc MISRA fixes for *-allcode targets

Andrew Cooper xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12arm: Use __func__ in acpi_boot_table_init()xen/arch/arm/acpi/boot.c+2 -22 replies
2/12xen/treewide: Adjust suffixes on integer literalsxen/arch/arm/gic-v3-its.c xen/arch/arm/include/asm/tee/optee_msg.h xen/arch/arm/include/asm/tee/optee_smc.h +7 more+29 -291 reply
3/12xen/argo: Fix MISRA violations around function parametersxen/common/argo.c+6 -62 replies
4/12xen/treewide: Adjust parameter names and typesxen/arch/arm/include/asm/pci.h xen/arch/arm/pci/pci-access.c xen/arch/x86/include/asm/compat.h +5 more+16 -161 reply
5/12x86: Adjust annotations of asm-used identifiersxen/arch/x86/boot/cmdline.c xen/arch/x86/boot/reloc.c xen/arch/x86/guest/xen/pvh-boot.c +3 more+6 -91 reply
6/12xen: Include suitable headers to make declarations visiblexen/arch/x86/include/asm/pv/mm.h xen/arch/x86/include/asm/pv/traps.h xen/arch/x86/mm/mem_paging.c +11 more+27 -81 reply
7/12xen/vmac: Const the key parameter of vmac_set_key()xen/arch/x86/tboot.c xen/crypto/vmac.c xen/include/crypto/vmac.h+5 -51 reply
8/12arm/pci-designware: Fix MISRA violationsxen/arch/arm/pci/pci-designware.c xen/arch/arm/pci/pci-designware.h+3 -42 replies
9/12x86/shadow: Rework write_atomic() call in shadow_write_entries()xen/arch/x86/mm/shadow/set.c+2 -26 replies
10/12xen: Adjust break/fallthrough statementsxen/arch/arm/pci/pci-access.c xen/arch/arm/pci/pci-designware.c xen/arch/arm/tee/optee.c +1 more+6 -12 replies
11/12xen: Bracket uses of macro parametersxen/arch/arm/pci/pci-access.c xen/arch/x86/include/asm/bootinfo.h xen/arch/x86/mm/shadow/multi.c +4 more+24 -226 replies
12/12xen/vmac: Delete STDINT block in vmac.hxen/include/crypto/vmac.h+0 -231 reply

Reviews trailers per patch

11 of 12 patches have a Reviewed-by or Acked-by.

PatchNicola VetriniMichal OrzelJan BeulichDaniel P. Smith
1/12R-b R-b
2/12R-b
3/12R-b R-b
4/12R-b
5/12
6/12A-b
7/12A-b
8/12R-b R-b
9/12R-b
10/12R-b R-b
11/12R-b R-b
12/12A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

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

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