Skip to content

Commit b6378ca

Browse files
kwilczynskigreentime
authored andcommitted
nds32: Move static keyword to the front of declaration
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 <[email protected]> Acked-by: Greentime Hu <[email protected]> Signed-off-by: Greentime Hu <[email protected]>
1 parent 1b78375 commit b6378ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/nds32/kernel/perf_event_cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,7 @@ static void cpu_pmu_init(struct nds32_pmu *cpu_pmu)
11191119
on_each_cpu(cpu_pmu->reset, cpu_pmu, 1);
11201120
}
11211121

1122-
const static struct of_device_id cpu_pmu_of_device_ids[] = {
1122+
static const struct of_device_id cpu_pmu_of_device_ids[] = {
11231123
{.compatible = "andestech,nds32v3-pmu",
11241124
.data = device_pmu_init},
11251125
{},

0 commit comments

Comments
 (0)