[PATCH] ARM: mach-rpc: fix zImage build after recent font-related changes
Ethan Nelson-Moore
enelsonmoore at gmail.com
Tue May 19 21:49:00 PDT 2026
Hi, Helge,
Thanks for investigating this issue.
On Tue, May 19, 2026 at 2:11 AM Helge Deller <deller at kernel.org> wrote:
> Ethan, does this compile-only-tested patch fix the issue?
It almost does - I also had to remove #include <linux/math.h> from
include/linux/font.h.
This is probably because of the following highly questionable code in
arch/arm/boot/compressed/Makefile:
CFLAGS_font.o := -Dstatic=
which is causing unused static functions to not be optimized out. (The
real purpose of it is to make the acorndata_8x8 array non-static so
the decompressor can use it.) Really, the decompressor should be fixed
to not use this hack.
> Maybe only the first hunk is necessary.
You're right. The kernel links successfully with only the #include
<linux/math.h> removal and the first hunk applied.
Have a nice day!
Ethan
More information about the linux-arm-kernel
mailing list