Skip to content

Commit 9af032a

Browse files
kwilczynskiguoren83
authored andcommitted
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 <[email protected]> Signed-off-by: Guo Ren <[email protected]>
1 parent a2139d3 commit 9af032a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/csky/kernel/perf_event.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,7 @@ int csky_pmu_device_probe(struct platform_device *pdev,
13371337
return ret;
13381338
}
13391339

1340-
const static struct of_device_id csky_pmu_of_device_ids[] = {
1340+
static const struct of_device_id csky_pmu_of_device_ids[] = {
13411341
{.compatible = "csky,csky-pmu"},
13421342
{},
13431343
};

0 commit comments

Comments
 (0)