]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
nds32: Move static keyword to the front of declaration
authorKrzysztof Wilczynski <kw@linux.com>
Wed, 4 Sep 2019 23:52:16 +0000 (01:52 +0200)
committerGreentime Hu <greentime.hu@sifive.com>
Thu, 21 Nov 2019 08:05:15 +0000 (16:05 +0800)
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>
arch/nds32/kernel/perf_event_cpu.c

index 334c2a6cec23ddc1df7458737c15a4673159eef7..0ce6f9f307e6ad34188ced46a9f8f5c71fc1c564 100644 (file)
@@ -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},
        {},