generic: 6.12: fix undefined references
authorMieczyslaw Nalewaj <namiltd@yahoo.com>
Mon, 18 Nov 2024 21:28:12 +0000 (22:28 +0100)
committerZoltan HERPAI <wigyori@uid0.hu>
Tue, 17 Dec 2024 22:28:10 +0000 (23:28 +0100)
Fix undefined references to kallsyms_token_table and kallsyms_token_index.

Co-authored-by: Aditya Nugraha <vortexilation@gmail.com>
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
target/linux/generic/hack-6.12/932-fix-undefined-references.patch [new file with mode: 0644]

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 (file)
index 0000000..ef6ffcd
--- /dev/null
@@ -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 */