summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Wilczynski <kw@linux.com>2019-09-03 13:36:51 +0200
committerGuo Ren <ren_guo@c-sky.com>2019-09-30 11:50:49 +0800
commit9af032a30172e119a5935f802b066631f8ded2d6 (patch)
treed6a5d4c7cf5d297fd7963c64521002e9b404f0b0
parenta2139d3b4fd7ef26a363a1b1eb6cd55be2c1bcd1 (diff)
downloadlinux-9af032a30172e119a5935f802b066631f8ded2d6.tar.gz
linux-9af032a30172e119a5935f802b066631f8ded2d6.tar.xz
csky: Move static keyword to the front of declaration
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>
-rw-r--r--arch/csky/kernel/perf_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/csky/kernel/perf_event.c b/arch/csky/kernel/perf_event.c
index 7570109cddc6..1a29f1157449 100644
--- a/arch/csky/kernel/perf_event.c
+++ b/arch/csky/kernel/perf_event.c
@@ -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"},
{},
};