Skip to content

Commit c4e0f3b

Browse files
SamuelZOUjoergroedel
authored andcommitted
iommu/msm: Make msm_iommu_lock static
Fix the following sparse warning: drivers/iommu/msm_iommu.c:37:1: warning: symbol 'msm_iommu_lock' was not declared. The msm_iommu_lock has only call site within msm_iommu.c It should be static Fixes: 0720d1f ("msm: Add MSM IOMMU support") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Samuel Zou <[email protected]> Reviewed-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 6a8b55e commit c4e0f3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/msm_iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ __asm__ __volatile__ ( \
3434
/* bitmap of the page sizes currently supported */
3535
#define MSM_IOMMU_PGSIZES (SZ_4K | SZ_64K | SZ_1M | SZ_16M)
3636

37-
DEFINE_SPINLOCK(msm_iommu_lock);
37+
static DEFINE_SPINLOCK(msm_iommu_lock);
3838
static LIST_HEAD(qcom_iommu_devices);
3939
static struct iommu_ops msm_iommu_ops;
4040

0 commit comments

Comments
 (0)