Skip to content

xen: address MISRA C Rule 11.8 violations

Dmytro Prokopchuk1 xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4xen: make stop_machine_run() take const void *xen/arch/arm/alternative.c xen/arch/arm/cpuerrata.c xen/arch/arm/cpufeature.c +5 more+20 -182 replies
2/4xen/arm: acpi: resolve MISRA C Rule 11.8 in acpi_xsdt_modify_entry()xen/arch/arm/acpi/domain_build.c+1 -12 replies
3/4xen: resolve MISRA C Rule 11.8 in xen_build_id_check()xen/common/version.c xen/include/xen/elf.h+6 -22 replies
4/4automation/eclair: deviate MISRA C Rule 11.8 for xfree() and vfree()automation/eclair_analysis/ECLAIR/deviations.ecl docs/misra/deviations.rst docs/misra/rules.rst+16 -17 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] xen: address MISRA C Rule 11.8 violations

This series addresses a number of violations of MISRA C:2012 Rule 11.8 ("A cast shall not remove any const or volatile qualification from the type pointed to by a pointer").

Patches 1-3 remove the offending casts.
Patch 4 deviates the casts in livepatch.

Test CI pipeline:
https://gitlab.com/xen-project/people/dimaprkp4k/xen/-/pipelines/3021645211

Dmytro Prokopchuk (4):
xen: make stop_machine_run() take const void *
xen/arm: acpi: resolve MISRA C Rule 11.8 in acpi_xsdt_modify_entry()
xen: resolve MISRA C Rule 11.8 in xen_build_id_check() automation/eclair: deviate MISRA C Rule 11.8 for xfree() and vfree()

 automation/eclair_analysis/ECLAIR/deviations.ecl | 7 +++++++
 docs/misra/deviations.rst                        | 7 +++++++
 docs/misra/rules.rst                             | 3 ++-
 xen/arch/arm/acpi/domain_build.c                 | 2 +-
 xen/arch/arm/alternative.c                       | 4 ++--
 xen/arch/arm/cpuerrata.c                         | 8 ++++----
 xen/arch/arm/cpufeature.c                        | 4 ++--
 xen/arch/arm/include/asm/cpufeature.h            | 2 +-
 xen/arch/x86/cpu/microcode/core.c                | 4 ++--
 xen/common/cpu.c                                 | 4 ++--
 xen/common/stop_machine.c                        | 7 ++++---
 xen/common/version.c                             | 4 ++--
 xen/include/xen/elf.h                            | 4 ++++
 xen/include/xen/stop_machine.h                   | 5 +++--
 14 files changed, 43 insertions(+), 22 deletions(-)
Signature · 1 line
2.43.0