[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-4abf1ee16e25ba97bc9e04ddc64e0cd2a1bc41a8@git.kernel.org>
Date: Wed, 8 May 2019 04:40:05 -0700
From: tip-bot for Wang Hai <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, torvalds@...ux-foundation.org,
hpa@...or.com, mingo@...nel.org, wanghai26@...wei.com,
peterz@...radead.org, tglx@...utronix.de
Subject: [tip:perf/urgent] perf/x86/amd/iommu: Make the
'amd_iommu_attr_groups' symbol static
Commit-ID: 4abf1ee16e25ba97bc9e04ddc64e0cd2a1bc41a8
Gitweb: https://git.kernel.org/tip/4abf1ee16e25ba97bc9e04ddc64e0cd2a1bc41a8
Author: Wang Hai <wanghai26@...wei.com>
AuthorDate: Wed, 8 May 2019 10:04:18 +0800
Committer: Ingo Molnar <mingo@...nel.org>
CommitDate: Wed, 8 May 2019 13:35:32 +0200
perf/x86/amd/iommu: Make the 'amd_iommu_attr_groups' symbol static
Fixes the following sparse warning:
arch/x86/events/amd/iommu.c:396:30: warning:
symbol 'amd_iommu_attr_groups' was not declared. Should it be static?
Signed-off-by: Wang Hai <wanghai26@...wei.com>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: acme@...nel.org
Cc: alexander.shishkin@...ux.intel.com
Cc: bp@...en8.de
Cc: jolsa@...hat.com
Cc: namhyung@...nel.org
Fixes: 51686546304f (x86/events/amd/iommu: Fix sysfs perf attribute groups)
Link: http://lkml.kernel.org/r/20190508020418.19568-1-wanghai26@huawei.com
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
arch/x86/events/amd/iommu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/events/amd/iommu.c b/arch/x86/events/amd/iommu.c
index 7635c23f7d82..58a6993d7eb3 100644
--- a/arch/x86/events/amd/iommu.c
+++ b/arch/x86/events/amd/iommu.c
@@ -393,7 +393,7 @@ static __init int _init_events_attrs(void)
return 0;
}
-const struct attribute_group *amd_iommu_attr_groups[] = {
+static const struct attribute_group *amd_iommu_attr_groups[] = {
&amd_iommu_format_group,
&amd_iommu_cpumask_group,
&amd_iommu_events_group,
Powered by blists - more mailing lists