linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] Fonts: font_acorn_8x8: Replace discarded const qualifier
@ 2020-10-30 18:18 Lee Jones
  2020-10-31  5:09 ` Peilin Ye
                   ` (3 more replies)
  0 siblings, 4 replies; 25+ messages in thread
From: Lee Jones @ 2020-10-30 18:18 UTC (permalink / raw)
  To: daniel.vetter, gregkh, yepeilin.cs
  Cc: linux-arm-kernel, linux-kernel, Lee Jones, stable, Russell King

Commit 09e5b3fd5672 ("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.

Cc: <stable@vger.kernel.org>
Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
 lib/fonts/font_acorn_8x8.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/fonts/font_acorn_8x8.c b/lib/fonts/font_acorn_8x8.c
index 069b3e80c4344..fb395f0d40317 100644
--- a/lib/fonts/font_acorn_8x8.c
+++ b/lib/fonts/font_acorn_8x8.c
@@ -5,7 +5,7 @@
 
 #define FONTDATAMAX 2048
 
-static struct font_data acorndata_8x8 = {
+static const struct font_data acorndata_8x8 = {
 { 0, 0, FONTDATAMAX, 0 }, {
 /* 00 */  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ^@ */
 /* 01 */  0x7e, 0x81, 0xa5, 0x81, 0xbd, 0x99, 0x81, 0x7e, /* ^A */
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2020-11-07 15:35 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-30 18:18 [PATCH 1/1] Fonts: font_acorn_8x8: Replace discarded const qualifier Lee Jones
2020-10-31  5:09 ` Peilin Ye
2020-10-31 10:27 ` Russell King - ARM Linux admin
2020-11-01 13:11   ` Lee Jones
2020-11-02 10:23     ` Russell King - ARM Linux admin
2020-11-02 10:30       ` Russell King - ARM Linux admin
2020-11-02 16:12       ` Peilin Ye
2020-11-02 10:56 ` Daniel Vetter
2020-11-02 11:09   ` Lee Jones
2020-11-02 11:18     ` Daniel Vetter
2020-11-02 11:30       ` Lee Jones
2020-11-02 14:50         ` Daniel Vetter
2020-11-02 16:17           ` Peilin Ye
2020-11-02 16:24             ` Lee Jones
2020-11-02 16:25               ` Lee Jones
2020-11-02 16:34               ` Peilin Ye
2020-11-02 18:32 ` [PATCH v2 1/1] Fonts: " Peilin Ye
2020-11-03  8:53   ` Lee Jones
2020-11-03  8:58     ` Daniel Vetter
2020-11-03  9:15       ` Greg KH
2020-11-03  9:52         ` Daniel Vetter
2020-11-03 10:55           ` Lee Jones
2020-11-03 11:42             ` Peilin Ye
2020-11-07  5:19             ` Peilin Ye
2020-11-07 15:36               ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).