csky: Move static keyword to the front of declaration
authorKrzysztof Wilczynski <kw@linux.com>
Tue, 3 Sep 2019 11:36:51 +0000 (13:36 +0200)
committerGuo Ren <ren_guo@c-sky.com>
Mon, 30 Sep 2019 03:50:49 +0000 (11:50 +0800)
Move the static keyword to the front of declaration of
csky_pmu_of_device_ids, and resolve the following compiler
warning that can be seen when building with warnings
enabled (W=1):

arch/csky/kernel/perf_event.c:1340:1: warning:
  â€˜static’ is not at beginning of declaration [-Wold-style-declaration]

Signed-off-by: Krzysztof Wilczynski <kw@linux.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
arch/csky/kernel/perf_event.c

index 7570109cddc6a6455dd282b774a5095fedf5a597..1a29f1157449a96e1190b9e65c5017c35c0b44af 100644 (file)
@@ -1337,7 +1337,7 @@ int csky_pmu_device_probe(struct platform_device *pdev,
        return ret;
 }
 
-const static struct of_device_id csky_pmu_of_device_ids[] = {
+static const struct of_device_id csky_pmu_of_device_ids[] = {
        {.compatible = "csky,csky-pmu"},
        {},
 };