From ad05db4e0fb8114090c8154d7897901a8b31c668 Mon Sep 17 00:00:00 2001 From: Mieczyslaw Nalewaj Date: Mon, 18 Nov 2024 22:28:12 +0100 Subject: [PATCH] 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 --- .../hack-6.12/932-fix-undefined-references.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 target/linux/generic/hack-6.12/932-fix-undefined-references.patch 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 */ -- 2.30.2