summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/amd_iommu.c
diff options
context:
space:
mode:
authorWei Yongjun2016-07-28 04:09:53 +0200
committerJoerg Roedel2016-08-09 17:18:45 +0200
commita5604f260e68a45510ef773ce36ce301d1f6d102 (patch)
tree790d3f84c27a051a26e375b5fa01376fd3fdd1fe /drivers/iommu/amd_iommu.c
parentLinux 4.8-rc1 (diff)
downloadkernel-qcow2-linux-a5604f260e68a45510ef773ce36ce301d1f6d102.tar.gz
kernel-qcow2-linux-a5604f260e68a45510ef773ce36ce301d1f6d102.tar.xz
kernel-qcow2-linux-a5604f260e68a45510ef773ce36ce301d1f6d102.zip
iommu/amd: Fix non static symbol warning
Fixes the following sparse warning: drivers/iommu/amd_iommu.c:106:1: warning: symbol '__pcpu_scope_flush_queue' was not declared. Should it be static? Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/amd_iommu.c')
-rw-r--r--drivers/iommu/amd_iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index 96de97a46079..bf5ec0c8f95e 100644
--- a/drivers/iommu/amd_iommu.c
+++ b/drivers/iommu/amd_iommu.c
@@ -103,7 +103,7 @@ struct flush_queue {
struct flush_queue_entry *entries;
};
-DEFINE_PER_CPU(struct flush_queue, flush_queue);
+static DEFINE_PER_CPU(struct flush_queue, flush_queue);
static atomic_t queue_timer_on;
static struct timer_list queue_timer;