summaryrefslogtreecommitdiff
path: root/arch/nds32/kernel/perf_event_cpu.c
diff options
context:
space:
mode:
authorKrzysztof Wilczynski <kw@linux.com>2019-09-05 01:52:16 +0200
committerGreentime Hu <greentime.hu@sifive.com>2019-11-21 16:05:15 +0800
commitb6378caf829e9e3b4d61c0901f4d6c1e6819716f (patch)
treef9e424954364092ac664d54225d6b4a141a5755d /arch/nds32/kernel/perf_event_cpu.c
parent1b78375c3789cb89912e4a5a47070841211888af (diff)
downloadlinux-b6378caf829e9e3b4d61c0901f4d6c1e6819716f.tar.gz
nds32: Move static keyword to the front of declaration
Move the static keyword to the front of declaration of cpu_pmu_of_device_ids, and resolve the following compiler warning that can be seen when building with warnings enabled (W=1): arch/nds32/kernel/perf_event_cpu.c:1122:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] Signed-off-by: Krzysztof Wilczynski <kw@linux.com> Acked-by: Greentime Hu <green.hu@gmail.com> Signed-off-by: Greentime Hu <green.hu@gmail.com>
Diffstat (limited to 'arch/nds32/kernel/perf_event_cpu.c')
-rw-r--r--arch/nds32/kernel/perf_event_cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nds32/kernel/perf_event_cpu.c b/arch/nds32/kernel/perf_event_cpu.c
index 334c2a6cec23..0ce6f9f307e6 100644
--- a/arch/nds32/kernel/perf_event_cpu.c
+++ b/arch/nds32/kernel/perf_event_cpu.c
@@ -1119,7 +1119,7 @@ static void cpu_pmu_init(struct nds32_pmu *cpu_pmu)
on_each_cpu(cpu_pmu->reset, cpu_pmu, 1);
}
-const static struct of_device_id cpu_pmu_of_device_ids[] = {
+static const struct of_device_id cpu_pmu_of_device_ids[] = {
{.compatible = "andestech,nds32v3-pmu",
.data = device_pmu_init},
{},