Skip to content

Commit 77dc118

Browse files
committed
Merge tag 'kbuild-fixes-v5.0-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Pull more Kbuild fixes from Masahiro Yamada: - fix scripts/kallsyms.c to correctly check too long symbol names - fix sh build error for the combination of CONFIG_OF_EARLY_FLATTREE=y and CONFIG_USE_BUILTIN_DTB=n * tag 'kbuild-fixes-v5.0-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: sh: fix build error for invisible CONFIG_BUILTIN_DTB_SOURCE kallsyms: Handle too long symbols in kallsyms.c
2 parents 6ee2846 + 207a369 commit 77dc118

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arch/sh/boot/dts/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
ifneq ($(CONFIG_BUILTIN_DTB_SOURCE),"")
2-
obj-y += $(patsubst "%",%,$(CONFIG_BUILTIN_DTB_SOURCE)).dtb.o
2+
obj-$(CONFIG_USE_BUILTIN_DTB) += $(patsubst "%",%,$(CONFIG_BUILTIN_DTB_SOURCE)).dtb.o
33
endif

scripts/kallsyms.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ static int read_symbol(FILE *in, struct sym_entry *s)
118118
fprintf(stderr, "Read error or end of file.\n");
119119
return -1;
120120
}
121-
if (strlen(sym) > KSYM_NAME_LEN) {
122-
fprintf(stderr, "Symbol %s too long for kallsyms (%zu vs %d).\n"
121+
if (strlen(sym) >= KSYM_NAME_LEN) {
122+
fprintf(stderr, "Symbol %s too long for kallsyms (%zu >= %d).\n"
123123
"Please increase KSYM_NAME_LEN both in kernel and kallsyms.c\n",
124124
sym, strlen(sym), KSYM_NAME_LEN);
125125
return -1;

0 commit comments

Comments
 (0)