[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190508020418.19568-1-wanghai26@huawei.com>
Date: Wed, 8 May 2019 10:04:18 +0800
From: Wang Hai <wanghai26@...wei.com>
To: <peterz@...radead.org>, <mingo@...hat.com>, <acme@...nel.org>,
<alexander.shishkin@...ux.intel.com>, <jolsa@...hat.com>,
<namhyung@...nel.org>, <tglx@...utronix.de>, <bp@...en8.de>,
<hpa@...or.com>
CC: <wanghai26@...wei.com>, <x86@...nel.org>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH] x86/events/amd/iommu: Make symbol 'amd_iommu_attr_groups' static
Fix 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?
Fixes: 51686546304f (x86/events/amd/iommu: Fix sysfs perf attribute groups)
Signed-off-by: Wang Hai <wanghai26@...wei.com>
---
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,
--
2.17.1
Powered by blists - more mailing lists