Skip to content

Remove smatch warnings on s5p-mfc driver

Mauro Carvalho Chehab linux-arm-kernel linux-media 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4s5p_mfc: use static for some structsdrivers/media/platform/s5p-mfc/s5p_mfc.c+12 -120 replies
2/4s5p_mfc_opr_v5: fix smatch warningsdrivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c+2 -20 replies
3/4s5p_mfc_opr_v6: fix wrong type for registersdrivers/media/platform/s5p-mfc/s5p_mfc_opr.h drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c+246 -2460 replies
4/4s5p_mfc_opr_v6: remove address space removal warningsdrivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c+4 -40 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] Remove smatch warnings on s5p-mfc driver

When compiling s5p-mfc driver with:

make ARCH=i386 C=1 CF=-D__CHECK_ENDIAN__ CONFIG_DEBUG_SECTION_MISMATCH=y W=1 CF=-D__CHECK_ENDIAN__ M=drivers/media

Lots of smatch warnings are produced, because:
- some static vars were missing 'static';
- the readl/writel pointers were wrongly declared.

Fix them.

Mauro Carvalho Chehab (4):
[media] s5p_mfc: use static for some structs [media] s5p_mfc_opr_v5: fix smatch warnings
[media] s5p_mfc_opr_v6: fix wrong type for registers [media] s5p_mfc_opr_v6: remove address space removal warnings

 drivers/media/platform/s5p-mfc/s5p_mfc.c        |  24 +-
 drivers/media/platform/s5p-mfc/s5p_mfc_opr.h    | 488 ++++++++++++------------
 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c |   4 +-
 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c |  12 +-
 4 files changed, 264 insertions(+), 264 deletions(-)
Signature · 1 line
1.9.3