Skip to content

iommu: Fix some static checker warnings

Joerg Roedel linux-iommu lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9iommu/amd: Simplify allocation in irq_remapping_alloc()drivers/iommu/amd_iommu.c+6 -110 replies
2/9iommu/amd: Make a symbol staticdrivers/iommu/amd_iommu_init.c+1 -10 replies
3/9iommu/amd: Use BUG_ON instead of if () BUG()drivers/iommu/amd_iommu.c drivers/iommu/amd_iommu_v2.c+4 -40 replies
4/9iommu/vt-d: Return false instead of 0 in irq_remapping_cap()drivers/iommu/irq_remapping.c+1 -10 replies
5/9iommu/vt-d: Use BUG_ON instead of if () BUG()drivers/iommu/intel-iommu.c+1 -20 replies
6/9iommu/vt-d: Make two functions staticdrivers/iommu/intel-iommu.c+4 -40 replies
7/9iommu/vt-d: Access iomem correctlydrivers/iommu/intel-iommu.c drivers/iommu/intel_irq_remapping.c+11 -80 replies
8/9iommu/msm: Use BUG_ON instead of if () BUG()drivers/iommu/msm_iommu.c+2 -20 replies
9/9iommu/io-pgtable-arm: Move init-fn declarations to io-pgtable.hdrivers/iommu/io-pgtable.c drivers/iommu/io-pgtable.h+5 -50 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/9] iommu: Fix some static checker warnings

Hi,

here are some patches to fix various static checker warnings I have seen through testing other code. Main intention behind these is to reduce the noise. In particular I used these checkers:

* coccinelle scripts in the kernel tree
* smatch
* sparse

Please review.

Thanks,

Joerg

Joerg Roedel (9):
iommu/amd: Simplify allocation in irq_remapping_alloc() iommu/amd: Make a symbol static
iommu/amd: Use BUG_ON instead of if () BUG() iommu/vt-d: Return false instead of 0 in irq_remapping_cap() iommu/vt-d: Use BUG_ON instead of if () BUG() iommu/vt-d: Make two functions static
iommu/vt-d: Access iomem correctly
iommu/msm: Use BUG_ON instead of if () BUG() iommu/io-pgtable-arm: Move init-fn declarations to io-pgtable.h

 drivers/iommu/amd_iommu.c           | 21 ++++++++-------------
 drivers/iommu/amd_iommu_init.c      |  2 +-
 drivers/iommu/amd_iommu_v2.c        |  4 ++--
 drivers/iommu/intel-iommu.c         | 26 ++++++++++++++------------
 drivers/iommu/intel_irq_remapping.c |  4 ++--
 drivers/iommu/io-pgtable.c          |  5 -----
 drivers/iommu/io-pgtable.h          |  5 +++++
 drivers/iommu/irq_remapping.c       |  2 +-
 drivers/iommu/msm_iommu.c           |  4 ++--
 9 files changed, 35 insertions(+), 38 deletions(-)
Signature · 1 line
1.9.1