LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Wang Hai <wanghai26@huawei.com>
To: <peterz@infradead.org>, <mingo@redhat.com>, <acme@kernel.org>,
	<alexander.shishkin@linux.intel.com>, <jolsa@redhat.com>,
	<namhyung@kernel.org>, <tglx@linutronix.de>, <bp@alien8.de>,
	<hpa@zytor.com>
Cc: <wanghai26@huawei.com>, <x86@kernel.org>, <linux-kernel@vger.kernel.org>
Subject: [PATCH] x86/events/amd/iommu: Make symbol 'amd_iommu_attr_groups' static
Date: Wed, 8 May 2019 10:04:18 +0800	[thread overview]
Message-ID: <20190508020418.19568-1-wanghai26@huawei.com> (raw)

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@huawei.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



             reply	other threads:[~2019-05-08  2:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-08  2:04 Wang Hai [this message]
2019-05-08 11:40 ` [tip:perf/urgent] perf/x86/amd/iommu: Make the 'amd_iommu_attr_groups' symbol static tip-bot for Wang Hai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190508020418.19568-1-wanghai26@huawei.com \
    --to=wanghai26@huawei.com \
    --cc=acme@kernel.org \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=bp@alien8.de \
    --cc=hpa@zytor.com \
    --cc=jolsa@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=namhyung@kernel.org \
    --cc=peterz@infradead.org \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    --subject='Re: [PATCH] x86/events/amd/iommu: Make symbol '\''amd_iommu_attr_groups'\'' static' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).