From: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
To: linux-snps-arc@lists.infradead.org,
Vineet Gupta <vineet.gupta1@synopsys.com>
Cc: linux-kernel@vger.kernel.org,
Alexey Brodkin <alexey.brodkin@synopsys.com>,
Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Jiri Olsa <jolsa@redhat.com>, Namhyung Kim <namhyung@kernel.org>,
Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Subject: [PATCH 5/5] ARC: perf: remove useless ifdefs
Date: Wed, 5 Dec 2018 20:06:09 +0300 [thread overview]
Message-ID: <20181205170609.18690-6-Eugeniy.Paltsev@synopsys.com> (raw)
In-Reply-To: <20181205170609.18690-1-Eugeniy.Paltsev@synopsys.com>
ifdef around 'arc_pmu_match' structure declaration is useless
as we refer to 'arc_pmu_match' in several places which aren't
guarded with ifdef.
Nevertheless 'ARC' option selects 'OF' unconditionally so we
can simply get rid of this ifdef.
Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
---
arch/arc/kernel/perf_event.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/arc/kernel/perf_event.c b/arch/arc/kernel/perf_event.c
index b6207090aaa7..7786c1f005fb 100644
--- a/arch/arc/kernel/perf_event.c
+++ b/arch/arc/kernel/perf_event.c
@@ -643,14 +643,12 @@ static int arc_pmu_device_probe(struct platform_device *pdev)
return perf_pmu_register(&arc_pmu->pmu, "arc_pmu", PERF_TYPE_RAW);
}
-#ifdef CONFIG_OF
static const struct of_device_id arc_pmu_match[] = {
{ .compatible = "snps,arc700-pct" },
{ .compatible = "snps,archs-pct" },
{},
};
MODULE_DEVICE_TABLE(of, arc_pmu_match);
-#endif
static struct platform_driver arc_pmu_driver = {
.driver = {
--
2.14.5
next prev parent reply other threads:[~2018-12-05 17:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-05 17:06 [PATCH 0/5] introduce Kernel PMU events support Eugeniy Paltsev
2018-12-05 17:06 ` [PATCH 1/5] ARC: perf: trivial code cleanup Eugeniy Paltsev
2018-12-05 17:12 ` Vineet Gupta
2018-12-05 17:06 ` [PATCH 2/5] ARC: perf: introduce Kernel PMU events support Eugeniy Paltsev
2018-12-05 18:09 ` Vineet Gupta
2018-12-12 23:41 ` Vineet Gupta
2018-12-05 17:06 ` [PATCH 3/5] ARC: perf: fix of kernel data types using Eugeniy Paltsev
2018-12-05 17:15 ` Vineet Gupta
2018-12-05 17:06 ` [PATCH 4/5] ARC: perf: fix description comment Eugeniy Paltsev
2018-12-05 17:13 ` Vineet Gupta
2018-12-06 15:49 ` Eugeniy Paltsev
2018-12-06 16:33 ` Vineet Gupta
2018-12-05 17:06 ` Eugeniy Paltsev [this message]
2018-12-05 17:14 ` [PATCH 5/5] ARC: perf: remove useless ifdefs Vineet Gupta
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=20181205170609.18690-6-Eugeniy.Paltsev@synopsys.com \
--to=eugeniy.paltsev@synopsys.com \
--cc=acme@kernel.org \
--cc=alexander.shishkin@linux.intel.com \
--cc=alexey.brodkin@synopsys.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-snps-arc@lists.infradead.org \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
--cc=vineet.gupta1@synopsys.com \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®