* [PATCH 0/7] static should be at beginning of declaration
@ 2011-07-09 21:08 Jesper Juhl
2011-07-09 21:11 ` [PATCH 1/7] ARM: " Jesper Juhl
` (7 more replies)
0 siblings, 8 replies; 11+ messages in thread
From: Jesper Juhl @ 2011-07-09 21:08 UTC (permalink / raw)
To: linux-kernel; +Cc: trivial
[-- Attachment #1: Type: TEXT/PLAIN, Size: 626 bytes --]
Here's a small series of patches that ake sure that the 'static' keywork
is at the beginning of declarations.
This gets rid of warnings like
warning: ‘static’ is not at beginning of declaration
when building with -Wold-style-declaration (and/or -Wextra which also
enables it).
I've cleaned out a number of these in the past and this patch set
represents the last few remaining offenders in the entire tree.
All patches will be sent as replies to this mail.
--
Jesper Juhl <jj@chaosbits.net> http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 1/7] ARM: static should be at beginning of declaration
2011-07-09 21:08 [PATCH 0/7] static should be at beginning of declaration Jesper Juhl
@ 2011-07-09 21:11 ` Jesper Juhl
2011-07-09 21:12 ` [PATCH 2/7] MIPS: " Jesper Juhl
` (6 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: Jesper Juhl @ 2011-07-09 21:11 UTC (permalink / raw)
To: linux-kernel
Cc: trivial, Paul Mundt, Magnus Damm, Russell King, linux-sh,
linux-arm-kernel
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1101 bytes --]
Make sure that the 'static' keywork is at the beginning of declaration
for arch/arm/mach-shmobile/board-ap4evb.c
This gets rid of warnings like
warning: ‘static’ is not at beginning of declaration
when building with -Wold-style-declaration (and/or -Wextra which also
enables it).
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
---
arch/arm/mach-shmobile/board-ap4evb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c
index 803bc6e..bb4e084 100644
--- a/arch/arm/mach-shmobile/board-ap4evb.c
+++ b/arch/arm/mach-shmobile/board-ap4evb.c
@@ -443,7 +443,7 @@ static struct platform_device usb1_host_device = {
.resource = usb1_host_resources,
};
-const static struct fb_videomode ap4evb_lcdc_modes[] = {
+static const struct fb_videomode ap4evb_lcdc_modes[] = {
{
#ifdef CONFIG_AP4EVB_QHD
.name = "R63302(QHD)",
--
1.7.6
--
Jesper Juhl <jj@chaosbits.net> http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 2/7] MIPS: static should be at beginning of declaration
2011-07-09 21:08 [PATCH 0/7] static should be at beginning of declaration Jesper Juhl
2011-07-09 21:11 ` [PATCH 1/7] ARM: " Jesper Juhl
@ 2011-07-09 21:12 ` Jesper Juhl
2011-08-02 9:24 ` Ralf Baechle
2011-07-09 21:16 ` [PATCH 3/7] SH: " Jesper Juhl
` (5 subsequent siblings)
7 siblings, 1 reply; 11+ messages in thread
From: Jesper Juhl @ 2011-07-09 21:12 UTC (permalink / raw)
To: linux-kernel; +Cc: trivial, Ralf Baechle, Lars-Peter Clausen, linux-mips
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1509 bytes --]
Make sure that the 'static' keywork is at the beginning of declaration
for arch/mips/include/asm/mach-jz4740/gpio.h
This gets rid of warnings like
warning: ‘static’ is not at beginning of declaration
when building with -Wold-style-declaration (and/or -Wextra which also
enables it).
Also a few tiny whitespace changes.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
---
arch/mips/include/asm/mach-jz4740/gpio.h | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/mips/include/asm/mach-jz4740/gpio.h b/arch/mips/include/asm/mach-jz4740/gpio.h
index 7b74703..1a6482e 100644
--- a/arch/mips/include/asm/mach-jz4740/gpio.h
+++ b/arch/mips/include/asm/mach-jz4740/gpio.h
@@ -25,14 +25,13 @@ enum jz_gpio_function {
JZ_GPIO_FUNC3,
};
-
/*
Usually a driver for a SoC component has to request several gpio pins and
configure them as funcion pins.
jz_gpio_bulk_request can be used to ease this process.
Usually one would do something like:
- const static struct jz_gpio_bulk_request i2c_pins[] = {
+ static const struct jz_gpio_bulk_request i2c_pins[] = {
JZ_GPIO_BULK_PIN(I2C_SDA),
JZ_GPIO_BULK_PIN(I2C_SCK),
};
@@ -47,8 +46,8 @@ enum jz_gpio_function {
jz_gpio_bulk_free(i2c_pins, ARRAY_SIZE(i2c_pins));
-
*/
+
struct jz_gpio_bulk_request {
int gpio;
const char *name;
--
1.7.6
--
Jesper Juhl <jj@chaosbits.net> http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 3/7] SH: static should be at beginning of declaration
2011-07-09 21:08 [PATCH 0/7] static should be at beginning of declaration Jesper Juhl
2011-07-09 21:11 ` [PATCH 1/7] ARM: " Jesper Juhl
2011-07-09 21:12 ` [PATCH 2/7] MIPS: " Jesper Juhl
@ 2011-07-09 21:16 ` Jesper Juhl
2011-07-09 21:17 ` [PATCH 4/7] XTENSA: " Jesper Juhl
` (4 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: Jesper Juhl @ 2011-07-09 21:16 UTC (permalink / raw)
To: linux-kernel
Cc: trivial, Paul Mundt, Guennadi Liakhovetski, linux-sh, Yusuke Goda,
Kuninori Morimoto, Magnus Damm
[-- Attachment #1: Type: TEXT/PLAIN, Size: 3611 bytes --]
Make sure that the 'static' keywork is at the beginning of declaration
for arch/sh/*
This gets rid of warnings like
warning: ‘static’ is not at beginning of declaration
when building with -Wold-style-declaration (and/or -Wextra which also
enables it).
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
---
arch/sh/boards/mach-ap325rxa/setup.c | 2 +-
arch/sh/boards/mach-ecovec24/setup.c | 4 ++--
arch/sh/boards/mach-kfr2r09/setup.c | 2 +-
arch/sh/boards/mach-migor/setup.c | 2 +-
arch/sh/boards/mach-se/7724/setup.c | 4 ++--
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/arch/sh/boards/mach-ap325rxa/setup.c b/arch/sh/boards/mach-ap325rxa/setup.c
index 969421f..1dc924b 100644
--- a/arch/sh/boards/mach-ap325rxa/setup.c
+++ b/arch/sh/boards/mach-ap325rxa/setup.c
@@ -188,7 +188,7 @@ static void ap320_wvga_power_off(void *board_data)
__raw_writew(0, FPGA_LCDREG);
}
-const static struct fb_videomode ap325rxa_lcdc_modes[] = {
+static const struct fb_videomode ap325rxa_lcdc_modes[] = {
{
.name = "LB070WV1",
.xres = 800,
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c
index 513cb1a..b24d69d 100644
--- a/arch/sh/boards/mach-ecovec24/setup.c
+++ b/arch/sh/boards/mach-ecovec24/setup.c
@@ -280,7 +280,7 @@ static struct platform_device usbhs_device = {
};
/* LCDC */
-const static struct fb_videomode ecovec_lcd_modes[] = {
+static const struct fb_videomode ecovec_lcd_modes[] = {
{
.name = "Panel",
.xres = 800,
@@ -295,7 +295,7 @@ const static struct fb_videomode ecovec_lcd_modes[] = {
},
};
-const static struct fb_videomode ecovec_dvi_modes[] = {
+static const struct fb_videomode ecovec_dvi_modes[] = {
{
.name = "DVI",
.xres = 1280,
diff --git a/arch/sh/boards/mach-kfr2r09/setup.c b/arch/sh/boards/mach-kfr2r09/setup.c
index 8b4abbb..f65271a 100644
--- a/arch/sh/boards/mach-kfr2r09/setup.c
+++ b/arch/sh/boards/mach-kfr2r09/setup.c
@@ -127,7 +127,7 @@ static struct platform_device kfr2r09_sh_keysc_device = {
},
};
-const static struct fb_videomode kfr2r09_lcdc_modes[] = {
+static const struct fb_videomode kfr2r09_lcdc_modes[] = {
{
.name = "TX07D34VM0AAA",
.xres = 240,
diff --git a/arch/sh/boards/mach-migor/setup.c b/arch/sh/boards/mach-migor/setup.c
index 184fde1..2d4c9c8 100644
--- a/arch/sh/boards/mach-migor/setup.c
+++ b/arch/sh/boards/mach-migor/setup.c
@@ -214,7 +214,7 @@ static struct platform_device migor_nand_flash_device = {
}
};
-const static struct fb_videomode migor_lcd_modes[] = {
+static const struct fb_videomode migor_lcd_modes[] = {
{
#if defined(CONFIG_SH_MIGOR_RTA_WVGA)
.name = "LB070WV1",
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c
index 1235767..d007567 100644
--- a/arch/sh/boards/mach-se/7724/setup.c
+++ b/arch/sh/boards/mach-se/7724/setup.c
@@ -145,7 +145,7 @@ static struct platform_device nor_flash_device = {
};
/* LCDC */
-const static struct fb_videomode lcdc_720p_modes[] = {
+static const struct fb_videomode lcdc_720p_modes[] = {
{
.name = "LB070WV1",
.sync = 0, /* hsync and vsync are active low */
@@ -160,7 +160,7 @@ const static struct fb_videomode lcdc_720p_modes[] = {
},
};
-const static struct fb_videomode lcdc_vga_modes[] = {
+static const struct fb_videomode lcdc_vga_modes[] = {
{
.name = "LB070WV1",
.sync = 0, /* hsync and vsync are active low */
--
1.7.6
--
Jesper Juhl <jj@chaosbits.net> http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 4/7] XTENSA: static should be at beginning of declaration
2011-07-09 21:08 [PATCH 0/7] static should be at beginning of declaration Jesper Juhl
` (2 preceding siblings ...)
2011-07-09 21:16 ` [PATCH 3/7] SH: " Jesper Juhl
@ 2011-07-09 21:17 ` Jesper Juhl
2011-07-09 21:20 ` [PATCH 5/7] drivers/i2c: " Jesper Juhl
` (3 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: Jesper Juhl @ 2011-07-09 21:17 UTC (permalink / raw)
To: linux-kernel
Cc: trivial, Chris Zankel, Emlix GmbH, Fabian Godehardt,
Oskar Schirmer, Daniel Gloeckner
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1246 bytes --]
Make sure that the 'static' keywork is at the beginning of declaration
for arch/xtensa/variants/s6000/include/variant/dmac.h
This gets rid of warnings like
warning: ‘static’ is not at beginning of declaration
when building with -Wold-style-declaration (and/or -Wextra which also
enables it).
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
---
arch/xtensa/variants/s6000/include/variant/dmac.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/xtensa/variants/s6000/include/variant/dmac.h b/arch/xtensa/variants/s6000/include/variant/dmac.h
index 89ab948..e81735b 100644
--- a/arch/xtensa/variants/s6000/include/variant/dmac.h
+++ b/arch/xtensa/variants/s6000/include/variant/dmac.h
@@ -357,7 +357,7 @@ static inline u32 s6dmac_channel_enabled(u32 dmac, int chan)
static inline void s6dmac_dp_setup_group(u32 dmac, int port,
int nrch, int frrep)
{
- const static u8 mask[4] = {0, 3, 1, 2};
+ static const u8 mask[4] = {0, 3, 1, 2};
BUG_ON(dmac != S6_REG_DPDMA);
if ((port < 0) || (port > 3) || (nrch < 1) || (nrch > 4))
return;
--
1.7.6
--
Jesper Juhl <jj@chaosbits.net> http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 5/7] drivers/i2c: static should be at beginning of declaration
2011-07-09 21:08 [PATCH 0/7] static should be at beginning of declaration Jesper Juhl
` (3 preceding siblings ...)
2011-07-09 21:17 ` [PATCH 4/7] XTENSA: " Jesper Juhl
@ 2011-07-09 21:20 ` Jesper Juhl
2011-07-09 21:22 ` [PATCH 6/7] drivers/media: " Jesper Juhl
` (2 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: Jesper Juhl @ 2011-07-09 21:20 UTC (permalink / raw)
To: linux-kernel
Cc: trivial, Jean Delvare (PC drivers, core),
Ben Dooks (embedded platforms), linux-i2c
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1233 bytes --]
Make sure that the 'static' keywork is at the beginning of declaration
for drivers/i2c/busses/i2c-omap.c
This gets rid of warnings like
warning: ‘static’ is not at beginning of declaration
when building with -Wold-style-declaration (and/or -Wextra which also
enables it).
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
---
drivers/i2c/busses/i2c-omap.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index 58a58c7..1a766cf 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -204,7 +204,7 @@ struct omap_i2c_dev {
u16 errata;
};
-const static u8 reg_map[] = {
+static const u8 reg_map[] = {
[OMAP_I2C_REV_REG] = 0x00,
[OMAP_I2C_IE_REG] = 0x01,
[OMAP_I2C_STAT_REG] = 0x02,
@@ -225,7 +225,7 @@ const static u8 reg_map[] = {
[OMAP_I2C_BUFSTAT_REG] = 0x10,
};
-const static u8 omap4_reg_map[] = {
+static const u8 omap4_reg_map[] = {
[OMAP_I2C_REV_REG] = 0x04,
[OMAP_I2C_IE_REG] = 0x2c,
[OMAP_I2C_STAT_REG] = 0x28,
--
1.7.6
--
Jesper Juhl <jj@chaosbits.net> http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 6/7] drivers/media: static should be at beginning of declaration
2011-07-09 21:08 [PATCH 0/7] static should be at beginning of declaration Jesper Juhl
` (4 preceding siblings ...)
2011-07-09 21:20 ` [PATCH 5/7] drivers/i2c: " Jesper Juhl
@ 2011-07-09 21:22 ` Jesper Juhl
2011-07-09 21:24 ` [PATCH 7/7] drivers/net: " Jesper Juhl
2011-07-11 12:16 ` [PATCH 0/7] " Jiri Kosina
7 siblings, 0 replies; 11+ messages in thread
From: Jesper Juhl @ 2011-07-09 21:22 UTC (permalink / raw)
To: linux-kernel; +Cc: trivial, Mauro Carvalho Chehab, linux-media, Andy Lowe
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1132 bytes --]
Make sure that the 'static' keywork is at the beginning of declaration
for drivers/media/video/omap/omap_vout.c
This gets rid of warnings like
warning: ‘static’ is not at beginning of declaration
when building with -Wold-style-declaration (and/or -Wextra which also
enables it).
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
---
drivers/media/video/omap/omap_vout.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/media/video/omap/omap_vout.c b/drivers/media/video/omap/omap_vout.c
index 4d07c58..a647894 100644
--- a/drivers/media/video/omap/omap_vout.c
+++ b/drivers/media/video/omap/omap_vout.c
@@ -129,7 +129,7 @@ module_param(debug, bool, S_IRUGO);
MODULE_PARM_DESC(debug, "Debug level (0-1)");
/* list of image formats supported by OMAP2 video pipelines */
-const static struct v4l2_fmtdesc omap_formats[] = {
+static const struct v4l2_fmtdesc omap_formats[] = {
{
/* Note: V4L2 defines RGB565 as:
*
--
1.7.6
--
Jesper Juhl <jj@chaosbits.net> http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 7/7] drivers/net: static should be at beginning of declaration
2011-07-09 21:08 [PATCH 0/7] static should be at beginning of declaration Jesper Juhl
` (5 preceding siblings ...)
2011-07-09 21:22 ` [PATCH 6/7] drivers/media: " Jesper Juhl
@ 2011-07-09 21:24 ` Jesper Juhl
2011-07-12 5:15 ` David Miller
2011-07-11 12:16 ` [PATCH 0/7] " Jiri Kosina
7 siblings, 1 reply; 11+ messages in thread
From: Jesper Juhl @ 2011-07-09 21:24 UTC (permalink / raw)
To: linux-kernel
Cc: trivial, Greg Kroah-Hartman, linux-usb, netdev, David S. Miller,
Marius Bjoernstad Kotsbak
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1973 bytes --]
Make sure that the 'static' keywork is at the beginning of declaration
for drivers/net/usb/kalmia.c
This gets rid of warnings like
warning: ‘static’ is not at beginning of declaration
when building with -Wold-style-declaration (and/or -Wextra which also
enables it).
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
---
drivers/net/usb/kalmia.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/net/usb/kalmia.c b/drivers/net/usb/kalmia.c
index a9b6c63..5a6d0f8 100644
--- a/drivers/net/usb/kalmia.c
+++ b/drivers/net/usb/kalmia.c
@@ -100,13 +100,13 @@ kalmia_send_init_packet(struct usbnet *dev, u8 *init_msg, u8 init_msg_len,
static int
kalmia_init_and_get_ethernet_addr(struct usbnet *dev, u8 *ethernet_addr)
{
- const static char init_msg_1[] =
+ static const char init_msg_1[] =
{ 0x57, 0x50, 0x04, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00,
0x00, 0x00 };
- const static char init_msg_2[] =
+ static const char init_msg_2[] =
{ 0x57, 0x50, 0x04, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0xf4,
0x00, 0x00 };
- const static int buflen = 28;
+ static const int buflen = 28;
char *usb_buf;
int status;
@@ -239,11 +239,11 @@ kalmia_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
* Our task here is to strip off framing, leaving skb with one
* data frame for the usbnet framework code to process.
*/
- const static u8 HEADER_END_OF_USB_PACKET[] =
+ static const u8 HEADER_END_OF_USB_PACKET[] =
{ 0x57, 0x5a, 0x00, 0x00, 0x08, 0x00 };
- const static u8 EXPECTED_UNKNOWN_HEADER_1[] =
+ static const u8 EXPECTED_UNKNOWN_HEADER_1[] =
{ 0x57, 0x43, 0x1e, 0x00, 0x15, 0x02 };
- const static u8 EXPECTED_UNKNOWN_HEADER_2[] =
+ static const u8 EXPECTED_UNKNOWN_HEADER_2[] =
{ 0x57, 0x50, 0x0e, 0x00, 0x00, 0x00 };
int i = 0;
--
1.7.6
--
Jesper Juhl <jj@chaosbits.net> http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 0/7] static should be at beginning of declaration
2011-07-09 21:08 [PATCH 0/7] static should be at beginning of declaration Jesper Juhl
` (6 preceding siblings ...)
2011-07-09 21:24 ` [PATCH 7/7] drivers/net: " Jesper Juhl
@ 2011-07-11 12:16 ` Jiri Kosina
7 siblings, 0 replies; 11+ messages in thread
From: Jiri Kosina @ 2011-07-11 12:16 UTC (permalink / raw)
To: Jesper Juhl; +Cc: linux-kernel
On Sat, 9 Jul 2011, Jesper Juhl wrote:
> Here's a small series of patches that ake sure that the 'static' keywork
> is at the beginning of declarations.
>
> This gets rid of warnings like
> warning: ‘static’ is not at beginning of declaration
> when building with -Wold-style-declaration (and/or -Wextra which also
> enables it).
>
> I've cleaned out a number of these in the past and this patch set
> represents the last few remaining offenders in the entire tree.
>
> All patches will be sent as replies to this mail.
Applied all of them, thanks Jesper.
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 7/7] drivers/net: static should be at beginning of declaration
2011-07-09 21:24 ` [PATCH 7/7] drivers/net: " Jesper Juhl
@ 2011-07-12 5:15 ` David Miller
0 siblings, 0 replies; 11+ messages in thread
From: David Miller @ 2011-07-12 5:15 UTC (permalink / raw)
To: jj; +Cc: linux-kernel, trivial, gregkh, linux-usb, netdev, marius
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: Text/Plain; charset=iso-8859-7, Size: 611 bytes --]
From: Jesper Juhl <jj@chaosbits.net>
Date: Sat, 9 Jul 2011 23:24:43 +0200 (CEST)
> Make sure that the 'static' keywork is at the beginning of declaration
> for drivers/net/usb/kalmia.c
>
> This gets rid of warnings like
> warning: ¡static¢ is not at beginning of declaration
> when building with -Wold-style-declaration (and/or -Wextra which also
> enables it).
>
> Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Applied to net-next-2.6, thanks!
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2/7] MIPS: static should be at beginning of declaration
2011-07-09 21:12 ` [PATCH 2/7] MIPS: " Jesper Juhl
@ 2011-08-02 9:24 ` Ralf Baechle
0 siblings, 0 replies; 11+ messages in thread
From: Ralf Baechle @ 2011-08-02 9:24 UTC (permalink / raw)
To: Jesper Juhl; +Cc: linux-kernel, trivial, Lars-Peter Clausen, linux-mips
On Sat, Jul 09, 2011 at 11:12:35PM +0200, Jesper Juhl wrote:
> Make sure that the 'static' keywork is at the beginning of declaration
> for arch/mips/include/asm/mach-jz4740/gpio.h
>
> This gets rid of warnings like
> warning: ‘static’ is not at beginning of declaration
> when building with -Wold-style-declaration (and/or -Wextra which also
> enables it).
> Also a few tiny whitespace changes.
> - const static struct jz_gpio_bulk_request i2c_pins[] = {
> + static const struct jz_gpio_bulk_request i2c_pins[] = {
Quite surprising - but that still was valid C - just type for example:
int typedef (*func(const char op))(int a, int b[static const a = 3]);
Ralf
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2011-08-02 10:14 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-09 21:08 [PATCH 0/7] static should be at beginning of declaration Jesper Juhl
2011-07-09 21:11 ` [PATCH 1/7] ARM: " Jesper Juhl
2011-07-09 21:12 ` [PATCH 2/7] MIPS: " Jesper Juhl
2011-08-02 9:24 ` Ralf Baechle
2011-07-09 21:16 ` [PATCH 3/7] SH: " Jesper Juhl
2011-07-09 21:17 ` [PATCH 4/7] XTENSA: " Jesper Juhl
2011-07-09 21:20 ` [PATCH 5/7] drivers/i2c: " Jesper Juhl
2011-07-09 21:22 ` [PATCH 6/7] drivers/media: " Jesper Juhl
2011-07-09 21:24 ` [PATCH 7/7] drivers/net: " Jesper Juhl
2011-07-12 5:15 ` David Miller
2011-07-11 12:16 ` [PATCH 0/7] " Jiri Kosina
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox