RFC cppcheck rule 20.7 fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest18 patches 17 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | arm: cppcheck: misra rule 20.7 deviations for alternative.hdocs/ xen/ | +16 | 5 replies | |
| 2/18 | arm: cppcheck: misra rule 20.7 deviation on processor.hxen/ | +1 | 0 replies | |
| 3/18 | arm: cppcheck: misra rule 20.7 deviation on asm_defns.hxen/ | +2 | 0 replies | |
| 4/18 | arm: cppcheck: misra rule 20.7 deviation on config.hxen/ | +4 | 0 replies | |
| 5/18 | arm: cppcheck: fix misra rule 20.7 on arm/include/asm/string.hxen/ | +1 | 3 replies | |
| 6/18 | public: cppcheck: misra rule 20.7 on public/arch-arm.hxen/ | +3 | 0 replies | |
| 7/18 | xen: cppcheck: misra rule 20.7 deviation on compiler.hxen/ | +1 | 0 replies | |
| 8/18 | xen: cppcheck: misra rule 20.7 deviation on init.hxen/ | +4 | 1 reply | |
| 9/18 | xen: cppcheck: misra rule 20.7 deviation on kconfig.hdocs/ xen/ | +8 | 2 replies | |
| 10/18 | xen: cppcheck: misra rule 20.7 deviation on types.hxen/ | +1 | 0 replies | |
| 11/18 | xen: cppcheck: misra rule 20.7 deviation on xmalloc.hxen/ | +6 | 0 replies | |
| 12/18 | arm: cppcheck: misra rule 20.7 deviation on asm/arm64/sysregs.hxen/ | +1 | 0 replies | |
| 13/18 | public/x86: cppcheck: misra rule 20.7 deviation on hvm/save.hxen/ | +1 | 0 replies | |
| 14/18 | public/x86: cppcheck: misra rule 20.7 deviation on xen-x86_32.hxen/ | +4 | 0 replies | |
| 15/18 | public/x86: cppcheck: misra rule 20.7 deviation on xen-x86_64.hxen/ | +3 | 0 replies | |
| 16/18 | public/x86: cppcheck: misra rule 20.7 deviation on arch-x86/xen.hxen/ | +2 | 0 replies | |
| 17/18 | public: misra rule 20.7 deviation on errno.hxen/ | +1 | 3 replies | |
| 18/18 | public: misra rule 20.7 deviation on memory.hxen/ | +1 | 1 reply |
Reviews trailers per patch
2 of 18 patches have a Reviewed-by or Acked-by.
| Patch | Jan Beulich |
|---|---|
| 1/18 | |
| 2/18 | |
| 3/18 | |
| 4/18 | |
| 5/18 | |
| 6/18 | |
| 7/18 | |
| 8/18 | |
| 9/18 | |
| 10/18 | |
| 11/18 | |
| 12/18 | |
| 13/18 | |
| 14/18 | |
| 15/18 | |
| 16/18 | |
| 17/18 | A-b |
| 18/18 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC PATCH 00/18] cppcheck rule 20.7 fixes
In this serie there are some fixes for the rule 20.7, mainly violation found by cppcheck, most of them are false positive but some of them can be fixed.
The analysed build is arm64, to reproduce the reports here the command:
./xen/scripts/xen-analysis.py --cppcheck-misra --run-cppcheck -- CROSS_COMPILE="aarch64-linux-gnu-" XEN_TARGET_ARCH="arm64" O=/path/to/artifacts_folder
Luca Fancellu (18):
arm: cppcheck: misra rule 20.7 deviations for alternative.h
arm: cppcheck: misra rule 20.7 deviation on processor.h
arm: cppcheck: misra rule 20.7 deviation on asm_defns.h
arm: cppcheck: misra rule 20.7 deviation on config.h
arm: cppcheck: fix misra rule 20.7 on arm/include/asm/string.h
public: cppcheck: misra rule 20.7 on public/arch-arm.h
xen: cppcheck: misra rule 20.7 deviation on compiler.h
xen: cppcheck: misra rule 20.7 deviation on init.h
xen: cppcheck: misra rule 20.7 deviation on kconfig.h
xen: cppcheck: misra rule 20.7 deviation on types.h
xen: cppcheck: misra rule 20.7 deviation on xmalloc.h
arm: cppcheck: misra rule 20.7 deviation on asm/arm64/sysregs.h public/x86: cppcheck: misra rule 20.7 deviation on hvm/save.h public/x86: cppcheck: misra rule 20.7 deviation on xen-x86_32.h public/x86: cppcheck: misra rule 20.7 deviation on xen-x86_64.h public/x86: cppcheck: misra rule 20.7 deviation on arch-x86/xen.h
public: misra rule 20.7 deviation on errno.h
public: misra rule 20.7 deviation on memory.h
docs/misra/false-positive-cppcheck.json | 21 +++++++++++++++++++++ xen/arch/arm/include/asm/alternative.h | 2 ++ xen/arch/arm/include/asm/arm64/processor.h | 2 +- xen/arch/arm/include/asm/arm64/sysregs.h | 2 +- xen/arch/arm/include/asm/asm_defns.h | 2 ++ xen/arch/arm/include/asm/config.h | 4 ++++ xen/arch/arm/include/asm/string.h | 2 +- xen/include/public/arch-arm.h | 4 +++- xen/include/public/arch-x86/hvm/save.h | 1 + xen/include/public/arch-x86/xen-x86_32.h | 5 ++++- xen/include/public/arch-x86/xen-x86_64.h | 3 +++ xen/include/public/arch-x86/xen.h | 3 ++- xen/include/public/errno.h | 2 +- xen/include/public/memory.h | 2 +- xen/include/xen/compiler.h | 1 + xen/include/xen/init.h | 7 ++++--- xen/include/xen/kconfig.h | 1 + xen/include/xen/types.h | 1 + xen/include/xen/xmalloc.h | 6 ++++++ 19 files changed, 60 insertions(+), 11 deletions(-)
Signature · 1 line
2.17.1