Skip to contentSkip to conversation

linux-next: build failure after merge of the char-misc tree

DISCUSSION Stephen Rothwell 3 participants 4 messages Apr 29, 2025 – Apr 30, 2025 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the char-misc tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

ERROR: modpost: "init_mknod" [drivers/misc/misc_minor_kunit.ko] undefined!
ERROR: modpost: "init_unlink" [drivers/misc/misc_minor_kunit.ko] undefined!

Caused by commit

45f0de4f8dc3 ("char: misc: add test cases")

I have used the char-misc tree from next-20250428 for today.

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

Hi all,

After merging the char-misc tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

Quoted 12 lines

ERROR: modpost: "init_mknod" [drivers/misc/misc_minor_kunit.ko] undefined!
ERROR: modpost: "init_unlink" [drivers/misc/misc_minor_kunit.ko] undefined!

Caused by commit

45f0de4f8dc3 ("char: misc: add test cases")

I have used the char-misc tree from next-20250428 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell

Hi, Stephen, thanks for bringing this up.

I fixed a similar issue, because the functions calling init_mknod and init_unlink were not __init functions. But it seems those symbols are not exported, so I might need to restrict the test module to be built-in.

Let me test that and get back to you.

Cascardo.

#2 lore raw
In reply to Stephen Rothwell
Quoted 5 lines · Stephen Rothwell

Hi all,

After merging the char-misc tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

Quoted 12 lines

ERROR: modpost: "init_mknod" [drivers/misc/misc_minor_kunit.ko] undefined!
ERROR: modpost: "init_unlink" [drivers/misc/misc_minor_kunit.ko] undefined!

Caused by commit

45f0de4f8dc3 ("char: misc: add test cases")

I have used the char-misc tree from next-20250428 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell

Hi, Greg.

I have a fix for this one. How stable is char-misc-next? Should I include a
Fixes: line referring to this commit ID? Or is there a chance char-misc-next would be rebased or the commit dropped, making the ID invalid?

Or would you rather that I submit a v5?

Thanks.
Cascardo.

#3 lore raw
Quoted 19 lines · Thadeu Lima de Souza Cascardo
Quoted 5 lines · Stephen Rothwell

Hi all,

After merging the char-misc tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

Quoted 12 lines

ERROR: modpost: "init_mknod" [drivers/misc/misc_minor_kunit.ko] undefined!
ERROR: modpost: "init_unlink" [drivers/misc/misc_minor_kunit.ko] undefined!

Caused by commit

45f0de4f8dc3 ("char: misc: add test cases")

I have used the char-misc tree from next-20250428 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
Quoted 6 lines

Hi, Greg.

I have a fix for this one. How stable is char-misc-next? Should I include a
Fixes: line referring to this commit ID? Or is there a chance char-misc-next would be rebased or the commit dropped, making the ID invalid?

It does not get rebased, so send a fix, otherwise if you:

Quoted 1 line

Or would you rather that I submit a v5?

Do that then I need to do a revert, and then add you v5. So a fix would be simplest, thanks!

greg k-h