1
0
Fork 0
alistair23-linux/lib/fonts
Lee Jones 61402d61a2 Fonts: Replace discarded const qualifier
commit 9522750c66 upstream.

Commit 6735b4632d ("Fonts: Support FONT_EXTRA_WORDS macros for built-in
fonts") introduced the following error when building rpc_defconfig (only
this build appears to be affected):

 `acorndata_8x8' referenced in section `.text' of arch/arm/boot/compressed/ll_char_wr.o:
    defined in discarded section `.data' of arch/arm/boot/compressed/font.o
 `acorndata_8x8' referenced in section `.data.rel.ro' of arch/arm/boot/compressed/font.o:
    defined in discarded section `.data' of arch/arm/boot/compressed/font.o
 make[3]: *** [/scratch/linux/arch/arm/boot/compressed/Makefile:191: arch/arm/boot/compressed/vmlinux] Error 1
 make[2]: *** [/scratch/linux/arch/arm/boot/Makefile:61: arch/arm/boot/compressed/vmlinux] Error 2
 make[1]: *** [/scratch/linux/arch/arm/Makefile:317: zImage] Error 2

The .data section is discarded at link time.  Reinstating acorndata_8x8 as
const ensures it is still available after linking.  Do the same for the
other 12 built-in fonts as well, for consistency purposes.

Cc: <stable@vger.kernel.org>
Cc: Russell King <linux@armlinux.org.uk>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Fixes: 6735b4632d ("Fonts: Support FONT_EXTRA_WORDS macros for built-in fonts")
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Co-developed-by: Peilin Ye <yepeilin.cs@gmail.com>
Signed-off-by: Peilin Ye <yepeilin.cs@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20201102183242.2031659-1-yepeilin.cs@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-10 12:37:26 +01:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile Fonts: New Terminus large console font 2018-12-19 10:42:08 +01:00
font_6x10.c Fonts: Replace discarded const qualifier 2020-11-10 12:37:26 +01:00
font_6x11.c Fonts: Replace discarded const qualifier 2020-11-10 12:37:26 +01:00
font_7x14.c Fonts: Replace discarded const qualifier 2020-11-10 12:37:26 +01:00
font_8x8.c Fonts: Replace discarded const qualifier 2020-11-10 12:37:26 +01:00
font_8x16.c Fonts: Replace discarded const qualifier 2020-11-10 12:37:26 +01:00
font_10x18.c Fonts: Replace discarded const qualifier 2020-11-10 12:37:26 +01:00
font_acorn_8x8.c Fonts: Replace discarded const qualifier 2020-11-10 12:37:26 +01:00
font_mini_4x6.c Fonts: Replace discarded const qualifier 2020-11-10 12:37:26 +01:00
font_pearl_8x8.c Fonts: Replace discarded const qualifier 2020-11-10 12:37:26 +01:00
font_sun8x16.c Fonts: Replace discarded const qualifier 2020-11-10 12:37:26 +01:00
font_sun12x22.c Fonts: Replace discarded const qualifier 2020-11-10 12:37:26 +01:00
font_ter16x32.c Fonts: Replace discarded const qualifier 2020-11-10 12:37:26 +01:00
fonts.c fonts: Prefer a bigger font for high resolution screens 2019-06-20 10:11:24 +02:00