sh: Storage class should be before const qualifier
Subsystems (2)
PATCH 1/1 sh: 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.
--- arch/sh/kernel/cpu/sh2a/clock-sh7203.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/sh/kernel/cpu/sh2a/clock-sh7203.c +2 -2
@@ -21,8 +21,8 @@#include <asm/freq.h> #include <asm/io.h> -const static int pll1rate[]={8 ,12 ,16 ,0 }; -const static int pfc_divisors[]={1 ,2 ,3 ,4 ,6 ,8 ,12 }; +static const int pll1rate[]={8 ,12 ,16 ,0 }; +static const int pfc_divisors[]={1 ,2 ,3 ,4 ,6 ,8 ,12 };#define ifc_divisors pfc_divisors #if (CONFIG_SH_CLK_MD = 0)
Signature · 1 line
1.5.4.1
Paul Mundt
AppliedQuoted 7 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]>
Applied, thanks.
PATCH 1/1 sh: Storage class should be before const qualifier
In reply to Tobias KlauserThe 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.
--- arch/sh/kernel/cpu/sh2a/clock-sh7201.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/sh/kernel/cpu/sh2a/clock-sh7201.c +2 -2
@@ -18,8 +18,8 @@#include <asm/freq.h> #include <asm/io.h> -const static int pll1rate[]={1 ,2 ,3 ,4 ,6 ,8 }; -const static int pfc_divisors[]={1 ,2 ,3 ,4 ,6 ,8 ,12 }; +static const int pll1rate[]={1 ,2 ,3 ,4 ,6 ,8 }; +static const int pfc_divisors[]={1 ,2 ,3 ,4 ,6 ,8 ,12 };#define ifc_divisors pfc_divisors #if (CONFIG_SH_CLK_MD = 0)
Signature · 1 line
1.5.6.5
Paul Mundt
AppliedQuoted 7 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]>
Applied, thanks.