Skip to content

Commit 536628d

Browse files
jjuhlpmundt
authored andcommitted
SH: static should be at beginning of declaration
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>
1 parent 1522043 commit 536628d

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎arch/sh/boards/mach-ap325rxa/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ static void ap320_wvga_power_off(void *board_data)
188188
__raw_writew(0, FPGA_LCDREG);
189189
}
190190

191-
const static struct fb_videomode ap325rxa_lcdc_modes[] = {
191+
static const struct fb_videomode ap325rxa_lcdc_modes[] = {
192192
{
193193
.name = "LB070WV1",
194194
.xres = 800,

‎arch/sh/boards/mach-ecovec24/setup.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ static struct platform_device usbhs_device = {
280280
};
281281

282282
/* LCDC */
283-
const static struct fb_videomode ecovec_lcd_modes[] = {
283+
static const struct fb_videomode ecovec_lcd_modes[] = {
284284
{
285285
.name = "Panel",
286286
.xres = 800,
@@ -295,7 +295,7 @@ const static struct fb_videomode ecovec_lcd_modes[] = {
295295
},
296296
};
297297

298-
const static struct fb_videomode ecovec_dvi_modes[] = {
298+
static const struct fb_videomode ecovec_dvi_modes[] = {
299299
{
300300
.name = "DVI",
301301
.xres = 1280,

‎arch/sh/boards/mach-kfr2r09/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ static struct platform_device kfr2r09_sh_keysc_device = {
127127
},
128128
};
129129

130-
const static struct fb_videomode kfr2r09_lcdc_modes[] = {
130+
static const struct fb_videomode kfr2r09_lcdc_modes[] = {
131131
{
132132
.name = "TX07D34VM0AAA",
133133
.xres = 240,

‎arch/sh/boards/mach-migor/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static struct platform_device migor_nand_flash_device = {
214214
}
215215
};
216216

217-
const static struct fb_videomode migor_lcd_modes[] = {
217+
static const struct fb_videomode migor_lcd_modes[] = {
218218
{
219219
#if defined(CONFIG_SH_MIGOR_RTA_WVGA)
220220
.name = "LB070WV1",

‎arch/sh/boards/mach-se/7724/setup.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ static struct platform_device nor_flash_device = {
145145
};
146146

147147
/* LCDC */
148-
const static struct fb_videomode lcdc_720p_modes[] = {
148+
static const struct fb_videomode lcdc_720p_modes[] = {
149149
{
150150
.name = "LB070WV1",
151151
.sync = 0, /* hsync and vsync are active low */
@@ -160,7 +160,7 @@ const static struct fb_videomode lcdc_720p_modes[] = {
160160
},
161161
};
162162

163-
const static struct fb_videomode lcdc_vga_modes[] = {
163+
static const struct fb_videomode lcdc_vga_modes[] = {
164164
{
165165
.name = "LB070WV1",
166166
.sync = 0, /* hsync and vsync are active low */

0 commit comments

Comments
 (0)