Commit 1a45a2e7 authored by Wei Yongjun's avatar Wei Yongjun Committed by Suren Baghdasaryan
Browse files

UPSTREAM: iommu: Make some functions static



The sparse tool complains as follows:

drivers/iommu/iommu.c:386:5: warning:
 symbol 'iommu_insert_resv_region' was not declared. Should it be static?
drivers/iommu/iommu.c:2182:5: warning:
 symbol '__iommu_map' was not declared. Should it be static?

Those functions are not used outside of iommu.c, so mark them static.

Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20200713142542.50294-1-weiyongjun1@huawei.com


Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>

(cherry picked from commit 1b0b2a84)

Fixes: 781ca2de ("iommu: Add gfp parameter to iommu_ops::map")
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
Change-Id: I6549b23b458d4abdb79b8cb427041730e787e1e8
parent 50c92ebd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment