Skip to contentSkip to conversation

linux-next: build warning after merge of the mm-nonmm-unstable tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Jul 29, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the mm-nonmm-unstable tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

WARNING: modpost: vmlinux: section mismatch in reference: kho_test_restore+0x16c (section: .text.unlikely) -> kho_test_restore_data.isra.0 (section: .init.text)

Introduced by commit

c2d288f7ab13 ("kho: add test for kexec handover")

Signature · 2 lines
Cheers,
Stephen Rothwell
maintainer
#1 lore raw
Quoted 10 lines · Stephen Rothwell

Hi all,

After merging the mm-nonmm-unstable tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

WARNING: modpost: vmlinux: section mismatch in reference: kho_test_restore+0x16c (section: .text.unlikely) -> kho_test_restore_data.isra.0 (section: .init.text)

Introduced by commit

c2d288f7ab13 ("kho: add test for kexec handover")

This should fix it. Andrew can you please add it as a fixup?

lib/test_kho.c +1 -1
index f5fe39c7c2b1..c2eb899c3b45 100644
@@ -194,7 +194,7 @@ static int kho_test_save(void)
 	return register_kho_notifier(&kho_test_nb);
 }
 
-static int __init kho_test_restore_data(const void *fdt, int node)
+static int kho_test_restore_data(const void *fdt, int node)
 {
 	const unsigned int *nr_folios;
 	const phys_addr_t *folios_info;
Quoted 3 lines
Signature · 2 lines
Cheers,
Stephen Rothwell
Signature · 2 lines
Sincerely yours,
Mike.