Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1451628 > unrolled thread
| Started by | Wei Yongjun <weiyj.lk@gmail.com> |
|---|---|
| First post | 2016-07-28 04:20 +0200 |
| Last post | 2016-08-09 17:20 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH -next] iommu/amd: Fix non static symbol warning Wei Yongjun <weiyj.lk@gmail.com> - 2016-07-28 04:20 +0200
Re: [PATCH -next] iommu/amd: Fix non static symbol warning Joerg Roedel <joro@8bytes.org> - 2016-08-09 17:20 +0200
| From | Wei Yongjun <weiyj.lk@gmail.com> |
|---|---|
| Date | 2016-07-28 04:20 +0200 |
| Subject | [PATCH -next] iommu/amd: Fix non static symbol warning |
| Message-ID | <rZJ5v-870-3@gated-at.bofh.it> |
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>
---
drivers/iommu/amd_iommu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index 96de97a..bf5ec0c 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;
[toc] | [next] | [standalone]
| From | Joerg Roedel <joro@8bytes.org> |
|---|---|
| Date | 2016-08-09 17:20 +0200 |
| Message-ID | <s4gYW-Rn-33@gated-at.bofh.it> |
| In reply to | #1451628 |
On Thu, Jul 28, 2016 at 02:09:53AM +0000, Wei Yongjun wrote: > 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> Applied, thanks.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web