All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sh: Storage class should be before const qualifier
@ 2008-02-17 14:38 Tobias Klauser
  2008-02-26  5:21 ` Paul Mundt
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tobias Klauser @ 2008-02-17 14:38 UTC (permalink / raw)
  To: linux-sh

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 <tklauser@distanz.ch>
---
 arch/sh/kernel/cpu/sh2a/clock-sh7203.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/sh/kernel/cpu/sh2a/clock-sh7203.c b/arch/sh/kernel/cpu/sh2a/clock-sh7203.c
index 3feb95a..fb78132 100644
--- a/arch/sh/kernel/cpu/sh2a/clock-sh7203.c
+++ b/arch/sh/kernel/cpu/sh2a/clock-sh7203.c
@@ -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)
-- 
1.5.4.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] sh: Storage class should be before const qualifier
  2008-02-17 14:38 [PATCH] sh: Storage class should be before const qualifier Tobias Klauser
@ 2008-02-26  5:21 ` Paul Mundt
  2009-02-09 20:59 ` Tobias Klauser
  2009-02-12  8:25 ` Paul Mundt
  2 siblings, 0 replies; 4+ messages in thread
From: Paul Mundt @ 2008-02-26  5:21 UTC (permalink / raw)
  To: linux-sh

On Sun, Feb 17, 2008 at 03:38:35PM +0100, Tobias Klauser wrote:
> 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 <tklauser@distanz.ch>

Applied, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] sh: Storage class should be before const qualifier
  2008-02-17 14:38 [PATCH] sh: Storage class should be before const qualifier Tobias Klauser
  2008-02-26  5:21 ` Paul Mundt
@ 2009-02-09 20:59 ` Tobias Klauser
  2009-02-12  8:25 ` Paul Mundt
  2 siblings, 0 replies; 4+ messages in thread
From: Tobias Klauser @ 2009-02-09 20:59 UTC (permalink / raw)
  To: linux-sh

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 <tklauser@distanz.ch>
---
 arch/sh/kernel/cpu/sh2a/clock-sh7201.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/sh/kernel/cpu/sh2a/clock-sh7201.c b/arch/sh/kernel/cpu/sh2a/clock-sh7201.c
index 020a96f..4a5e597 100644
--- a/arch/sh/kernel/cpu/sh2a/clock-sh7201.c
+++ b/arch/sh/kernel/cpu/sh2a/clock-sh7201.c
@@ -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)
-- 
1.5.6.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] sh: Storage class should be before const qualifier
  2008-02-17 14:38 [PATCH] sh: Storage class should be before const qualifier Tobias Klauser
  2008-02-26  5:21 ` Paul Mundt
  2009-02-09 20:59 ` Tobias Klauser
@ 2009-02-12  8:25 ` Paul Mundt
  2 siblings, 0 replies; 4+ messages in thread
From: Paul Mundt @ 2009-02-12  8:25 UTC (permalink / raw)
  To: linux-sh

On Mon, Feb 09, 2009 at 09:59:40PM +0100, Tobias Klauser wrote:
> 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 <tklauser@distanz.ch>

Applied, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-02-12  8:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-17 14:38 [PATCH] sh: Storage class should be before const qualifier Tobias Klauser
2008-02-26  5:21 ` Paul Mundt
2009-02-09 20:59 ` Tobias Klauser
2009-02-12  8:25 ` Paul Mundt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.