iommu/s390: fix sparse warnings
Subsystems (2)
PATCH 1/1 iommu/s390: fix sparse warnings
Fix these warnings:
CHECK drivers/iommu/s390-iommu.cdrivers/iommu/s390-iommu.c:52:21: warning: symbol 's390_domain_alloc' was not declared. Should it be static? drivers/iommu/s390-iommu.c:76:6: warning: symbol 's390_domain_free' was not declared. Should it be static?
Signed-off-by Sebastian Ott <[email protected]>
--- drivers/iommu/s390-iommu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/iommu/s390-iommu.c +2 -2
@@ -49,7 +49,7 @@ static bool s390_iommu_capable(enum iommu_cap cap) } } -struct iommu_domain *s390_domain_alloc (unsigned domain_type) +static struct iommu_domain *s390_domain_alloc (unsigned domain_type) {struct s390_domain *s390_domain;
@@ -73,7 +73,7 @@ struct iommu_domain *s390_domain_alloc(unsigned domain_type)return &s390_domain->domain; } -void s390_domain_free (struct iommu_domain *domain) +static void s390_domain_free (struct iommu_domain *domain) {struct s390_domain *s390_domain =to_s390_domain (domain);
Signature · 1 line
2.3.0
Quoted 6 lines · Sebastian Ott
Fix these warnings:
CHECKdrivers/iommu/s390-iommu.cdrivers/iommu/s390-iommu.c:52:21: warning: symbol 's390_domain_alloc' was not declared. Should it be static?drivers/iommu/s390-iommu.c:76:6: warning: symbol 's390_domain_free' was not declared. Should it be static?Signed-off-by Sebastian Ott <[email protected]>
Applied, thanks.