From: Mieczyslaw Nalewaj Date: Mon, 18 Nov 2024 21:28:12 +0000 (+0100) Subject: generic: 6.12: fix undefined references X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ad05db4e0fb8114090c8154d7897901a8b31c668;p=openwrt%2Fstaging%2Fwigyori.git generic: 6.12: fix undefined references Fix undefined references to kallsyms_token_table and kallsyms_token_index. Co-authored-by: Aditya Nugraha Signed-off-by: Mieczyslaw Nalewaj --- diff --git a/target/linux/generic/hack-6.12/932-fix-undefined-references.patch b/target/linux/generic/hack-6.12/932-fix-undefined-references.patch new file mode 100644 index 0000000000..ef6ffcd755 --- /dev/null +++ b/target/linux/generic/hack-6.12/932-fix-undefined-references.patch @@ -0,0 +1,13 @@ +--- a/kernel/vmcore_info.c ++++ b/kernel/vmcore_info.c +@@ -214,8 +214,10 @@ static int __init crash_save_vmcoreinfo_ + #ifdef CONFIG_KALLSYMS + VMCOREINFO_SYMBOL(kallsyms_names); + VMCOREINFO_SYMBOL(kallsyms_num_syms); ++#ifndef CONFIG_KALLSYMS_UNCOMPRESSED + VMCOREINFO_SYMBOL(kallsyms_token_table); + VMCOREINFO_SYMBOL(kallsyms_token_index); ++#endif + VMCOREINFO_SYMBOL(kallsyms_offsets); + VMCOREINFO_SYMBOL(kallsyms_relative_base); + #endif /* CONFIG_KALLSYMS */