Skip to content

xen/arm: tee: Fix MISRA findings

Bertrand Marquis xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xen/arm: ffa: Fix local ffa_vm_count shadowingxen/arch/arm/tee/ffa_partinfo.c+7 -72 replies
2/2xen/arm: optee: Add MISRA-compliant switch default labelsxen/arch/arm/tee/optee.c+11 -02 replies

Reviews trailers per patch

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

PatchMichal OrzelJens Wiklander
1/2R-b R-b
2/2R-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/2] xen/arm: tee: Fix MISRA findings

This series fixes two MISRA findings in the arm/tee mediators.

1. Rename a local variable in FF-A partition-info handling to avoid shadowing the global ffa_vm_count (Rule 5.3 report).
2. Add/document default switch labels in OP-TEE paths to satisfy Rule 16.4 checks.

This serie is based on "xen/arm: ffa: Add PARTITION_INFO_GET_REGS support" which is pending for merge in the tree so it must not be merged before it !!

The following pipeline executed on top of this serie shows that there are no findings anymore in xen/arch/arm/tee:
https://gitlab.com/xen-project/people/bmarquis/xen-ffa-research/-/pipelines/2395186683

Bertrand Marquis (2):
xen/arm: ffa: Fix local ffa_vm_count shadowing xen/arm: optee: Add MISRA-compliant switch default labels

 xen/arch/arm/tee/ffa_partinfo.c | 14 +++++++-------
 xen/arch/arm/tee/optee.c        | 11 +++++++++++
 2 files changed, 18 insertions(+), 7 deletions(-)
Signature · 1 line
2.52.0