Skip to content

Commit

Permalink
perf/x86/amd/iommu: Make the 'amd_iommu_attr_groups' symbol static
Browse files Browse the repository at this point in the history
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@huawei.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: acme@kernel.org
Cc: alexander.shishkin@linux.intel.com
Cc: bp@alien8.de
Cc: jolsa@redhat.com
Cc: namhyung@kernel.org
Fixes: 5168654 (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@kernel.org>
  • Loading branch information
Wang Hai authored and Ingo Molnar committed May 8, 2019
1 parent ffa6f55 commit 4abf1ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/events/amd/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4abf1ee

Please sign in to comment.