mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
![]() After a change to linux/module.h, dyndbg.h is now included
indirectly from the decompressor for lz4 support, which in turn
causes a build failure on 32-bit Arm:
In file included from include/linux/module.h:30,
from arch/arm/boot/compressed/../../../../lib/lz4/lz4_decompress.c:39,
from arch/arm/boot/compressed/../../../../lib/decompress_unlz4.c:10,
from arch/arm/boot/compressed/decompress.c:59:
include/linux/dynamic_debug.h: In function 'ddebug_dyndbg_module_param_cb':
include/linux/dynamic_debug.h:307:14: error: implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration]
307 | if (!strcmp(param, "dyndbg")) {
| ^~~~~~
include/linux/dynamic_debug.h:1:1: note: 'strcmp' is defined in header '<string.h>'; did you forget to '#include <string.h>'?
+++ |+#include <string.h>
The decompressor has its own replacement for the linux/string.h contents,
so the normal declaration is not visible here. Since the function is
not actually called, it is sufficient to add a declaration, and this
is in fact the correct one as it matches the definition in
arch/arm/boot/compressed/string.c.
Fixes:
|
||
---|---|---|
.. | ||
.gitignore | ||
ashldi3.S | ||
atags_to_fdt.c | ||
big-endian.S | ||
bswapsdi2.S | ||
debug.S | ||
decompress.c | ||
efi-header.S | ||
fdt.c | ||
fdt_check_mem_start.c | ||
fdt_ro.c | ||
fdt_rw.c | ||
fdt_wip.c | ||
font.c | ||
head-sa1100.S | ||
head-sharpsl.S | ||
head-xscale.S | ||
head.S | ||
hyp-stub.S | ||
lib1funcs.S | ||
ll_char_wr.S | ||
Makefile | ||
misc-ep93xx.h | ||
misc.c | ||
misc.h | ||
piggy.S | ||
string.c | ||
vmlinux.lds.S |