mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 12:21:22 -05:00
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 15e3252464 ("fbdev: work around old
compiler bug").
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
committed by
Helge Deller
parent
83a7eefedc
commit
3dc59489fd
@@ -238,7 +238,7 @@ static void write_header(void)
|
||||
fprintf(out, " * Linux logo %s\n", logoname);
|
||||
fputs(" */\n\n", out);
|
||||
fputs("#include <linux/linux_logo.h>\n\n", out);
|
||||
fprintf(out, "static unsigned char %s_data[] __initdata = {\n",
|
||||
fprintf(out, "static const unsigned char %s_data[] __initconst = {\n",
|
||||
logoname);
|
||||
}
|
||||
|
||||
@@ -375,7 +375,7 @@ static void write_logo_clut224(void)
|
||||
fputs("\n};\n\n", out);
|
||||
|
||||
/* write logo clut */
|
||||
fprintf(out, "static unsigned char %s_clut[] __initdata = {\n",
|
||||
fprintf(out, "static const unsigned char %s_clut[] __initconst = {\n",
|
||||
logoname);
|
||||
write_hex_cnt = 0;
|
||||
for (i = 0; i < logo_clutsize; i++) {
|
||||
|
||||
Reference in New Issue
Block a user