Re: linux-next: build failure in final build

From: Kir Chou

Date: Fri Jul 03 2026 - 01:15:24 EST


Hi folks,

Sorry for causing this, I think my v4 patch missed MODULE_IMPORT_NS, I just added it to another v5 patch with a kernel local build.

Please let me know if I missed anything, thanks!

Regards,
Kir

> On Jul 3, 2026, at 3:26, Mark Brown <broonie@xxxxxxxxxx> wrote:
>
> Hi all,
>
> After merging the kthread tree, today's linux-next build
> (powerpc pseries_le_defconfig) failed like this:
>
> ERROR: modpost: module random32_kunit uses symbol prandom_warmup from namespace EXPORTED_FOR_KUNIT_TESTING, but does not import it.
> make[3]: *** [/tmp/next/build/scripts/Makefile.modpost:147: Module.symvers] Error 1
> make[2]: *** [/tmp/next/build/Makefile:2134: modpost] Error 2
> make[1]: *** [/tmp/next/build/Makefile:248: __sub-make] Error 2
> make: *** [Makefile:248: __sub-make] Error 2
>
> Caused by commit
>
> 2ee1282ed36ff (lib/random32: convert selftest to KUnit)
>
> This appears to be showing up in this specific PowerPC configuration
> because ppc64_defconfig turns on
>
> CONFIG_KUNIT=m
> CONFIG_KUNIT_ALL_TESTS=m
>
> which is an unusual choice, normally defconfigs don't turn on KUnit and
> when KUnit is enabled it is built in.
>
> I have ignored this for today.
> <signature.asc>