Skip to content

Commit

Permalink
csky: Move static keyword to the front of declaration
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Guo Ren <[email protected]>
  • Loading branch information
kwilczynski authored and guoren83 committed Sep 30, 2019
1 parent a2139d3 commit 9af032a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/csky/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
{},
};
Expand Down

0 comments on commit 9af032a

Please sign in to comment.