SH: static should be at beginning of declaration
authorJesper Juhl <jj@chaosbits.net>
Sat, 9 Jul 2011 21:16:22 +0000 (21:16 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 11 Jul 2011 06:07:38 +0000 (15:07 +0900)
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>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/boards/mach-ap325rxa/setup.c
arch/sh/boards/mach-ecovec24/setup.c
arch/sh/boards/mach-kfr2r09/setup.c
arch/sh/boards/mach-migor/setup.c
arch/sh/boards/mach-se/7724/setup.c

index 969421f64a150a777b6a7f97e1d7b69aff4e1534..1dc924b2f5087ffa9b1bf8ff212644752fe23fd7 100644 (file)
@@ -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,
index 513cb1a2e6c830bc2d25cf27cf485ff8b37c37f8..b24d69d509e7d7ccfe7e78454fca4014b5c286a4 100644 (file)
@@ -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,
index 8b4abbbd1477f1fb6112de54ac2c35dff9b260e1..f65271a8d0754af996d0e8f2519d5d46c21edb7b 100644 (file)
@@ -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,
index 184fde16913282c76e51c6ba1a2ddab1d267d789..2d4c9c8c6664ba040214f016516c525d14018396 100644 (file)
@@ -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",
index 12357671023e38c8e1df3ccf5cfd211f2fc31ff8..d00756728bd231d577d1d65342768e1cfa237c8e 100644 (file)
@@ -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 */