[PATCH 12/23] kbuild: avoid re-running compiler and linker probes

David Laight david.laight.linux at gmail.com
Fri Sep 11 10:33:33 PDT 2026


On Thu, 10 Sep 2026 17:42:35 +0200
Nicolas Schier <n.schier at fritz.com> wrote:

...
> Yes, skimming through the patch, I thought about that, too.  Moving more 
> cc option checks to Kconfig will make building out-of-tree kmods with a 
> different compiler more dangerous.  Maybe we will have to make the 
> warning in Makefile's prepare (external kmods) target a bit louder.

One problem is that distributions have a nasty habit of shipping kernels
that are compiled with a different compiler version to they actually
ship as a compiler.
In some cases the versions are clearly the same - but the version
strings differ.

David



More information about the linux-riscv mailing list