]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
iommu/amd: Fix non static symbol warning
authorWei Yongjun <weiyj.lk@gmail.com>
Thu, 28 Jul 2016 02:09:53 +0000 (02:09 +0000)
committerJoerg Roedel <jroedel@suse.de>
Tue, 9 Aug 2016 15:18:45 +0000 (17:18 +0200)
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>
drivers/iommu/amd_iommu.c

index 96de97a460791ae70efa8f6b0ff91e736363c5e9..bf5ec0c8f95e0924910386764e1ceae7df41c487 100644 (file)
@@ -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;