Re: [PATCH] kbuild: unset sub_make_done before calling kselftest build system

Petr Mladek <[email protected]> Tue, 7 Jul 2026 14:09:10 +0200
Newsgroups org.kernel.vger.live-patching,org.kernel.vger.linux-kbuild,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest
Message-ID <[email protected]>
On Fri 2026-07-03 08:04:08, Thomas Weißschuh wrote:
> The kselftest build system may recourse back into kbuild when building
> test modules. In that case kbuild needs to parse the new flags passed
> from the command line, instead of using the ones inherited from the
> kbuild invocation.
> 
> Force that command line reevaluation.
> 
> The same was done for scripts/install.sh in commit 14ccc638b02f9ec
> ("kbuild: cancel sub_make_done for the install target to fix DKMS")
> 
> Reported-by: Zelin Deng <[email protected]>
> Closes: https://lore.kernel.org/all/[email protected]/
> Fixes: c9bb03ac2c66 ("kbuild: reduce output spam when building out of tree")
> Signed-off-by: Thomas Weißschuh <[email protected]>

JFYI, the patch has been committed into livepatching.git,
branch for-7.3/trivial.

The problem does not look serious enough to deserve rushing into
an 7.2-rcX. Also it is touching the global Makefile so it should
spent some time in linux-next. Let me know if you would prefer
to get it faster into the mainline.

Best Regards,
Petr