Skip to content

Commit a25efd6

Browse files
committed
Revert "Kbuild, lto, workaround: Don't warn for initcall_reference in modpost"
This reverts commit 77ab21a. Even after 8 years later, GCC LTO has not been upstreamed. Also, it said "This is a workaround". If this is needed in the future, it should be added in a proper way. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Acked-by: Jiri Slaby <jirislaby@kernel.org>
1 parent 5419aa2 commit a25efd6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

scripts/mod/modpost.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,9 +1462,6 @@ static void default_mismatch_handler(const char *modname, struct elf_info *elf,
14621462
from = find_elf_symbol2(elf, r->r_offset, fromsec);
14631463
fromsym = sym_name(elf, from);
14641464

1465-
if (strstarts(fromsym, "reference___initcall"))
1466-
return;
1467-
14681465
tosec = sec_name(elf, get_secindex(elf, sym));
14691466
to = find_elf_symbol(elf, r->r_addend, sym);
14701467
tosym = sym_name(elf, to);

0 commit comments

Comments
 (0)