]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
iommu/s390: Fix sparse warnings
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Fri, 6 Nov 2015 16:26:24 +0000 (17:26 +0100)
committerJoerg Roedel <jroedel@suse.de>
Thu, 26 Nov 2015 13:41:01 +0000 (14:41 +0100)
Fix these warnings:
  CHECK   drivers/iommu/s390-iommu.c
drivers/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 <sebott@linux.vnet.ibm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/s390-iommu.c

index 471ee36b9c6eea6d72ad74302fadfb97c28f8a7f..a04d491cf431ca47badf462f972a73b94f8c577e 100644 (file)
@@ -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);