h8300: Storage class should be before const qualifier
PATCH 1/1 h8300: Storage class should be before const qualifier
The C99 specification states in section 6.11.5:
The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature.
Signed-off-by Tobias Klauser <[email protected]>
--- arch/h8300/kernel/timer/tpu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/h8300/kernel/timer/tpu.c +1 -1
@@ -68,7 +68,7 @@ static struct irqaction tpu_irq = { .mask = CPU_MASK_NONE, }; -const static int __initdata divide_rate[] = { +static const int __initdata divide_rate[] = { #if CONFIG_H8300_TPU_CH = 0 1,4,16,64,0,0,0,0, #elif (CONFIG_H8300_TPU_CH = 1) || (CONFIG_H8300_TPU_CH = 5)
Signature · 1 line
1.5.6.5
Quoted 16 lines · Tobias Klauser
The C99 specification states in section 6.11.5:
The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature.
Signed-off-by Tobias Klauser <[email protected]>--- arch/h8300/kernel/timer/tpu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/h8300/kernel/timer/tpu.c +0
-0
arch/h8300/kernel/timer/tpu.c static struct irqaction tpu_irq = { · line 74
Quoted 8 lines
arch/h8300/kernel/timer/tpu.c +1
-1@@ -68,7 +68,7 @@ static struct irqaction tpu_irq = { .mask = CPU_MASK_NONE, }; -const static int __initdata divide_rate[] = { +static const int __initdata divide_rate[] = { #if CONFIG_H8300_TPU_CH = 0 1,4,16,64,0,0,0,0, #elif (CONFIG_H8300_TPU_CH = 1) || (CONFIG_H8300_TPU_CH = 5)
This doesn't seem to be picked by anyone for current -next/-mmotm, I have applied it to trivial tree. Thanks,
Signature · 2 lines
Jiri Kosina SUSE Labs