Skip to content

Commit 3dc5948

Browse files
geertuhdeller
authored andcommitted
video/logo: Make logo data const again
As gcc-4.1 is no longer supported, the logo data can be made const again. Hence revert commit 15e3252 ("fbdev: work around old compiler bug"). Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent 83a7eef commit 3dc5948

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/video/logo/pnmtologo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ static void write_header(void)
238238
fprintf(out, " * Linux logo %s\n", logoname);
239239
fputs(" */\n\n", out);
240240
fputs("#include <linux/linux_logo.h>\n\n", out);
241-
fprintf(out, "static unsigned char %s_data[] __initdata = {\n",
241+
fprintf(out, "static const unsigned char %s_data[] __initconst = {\n",
242242
logoname);
243243
}
244244

@@ -375,7 +375,7 @@ static void write_logo_clut224(void)
375375
fputs("\n};\n\n", out);
376376

377377
/* write logo clut */
378-
fprintf(out, "static unsigned char %s_clut[] __initdata = {\n",
378+
fprintf(out, "static const unsigned char %s_clut[] __initconst = {\n",
379379
logoname);
380380
write_hex_cnt = 0;
381381
for (i = 0; i < logo_clutsize; i++) {

0 commit comments

Comments
 (0)