Re: [tip: x86/core] x86/cpufeatures: Generate the <asm/cpufeaturemasks.h> header based on build config

From: Jakub Kicinski
Date: Fri Mar 28 2025 - 20:56:14 EST


On Fri, 28 Mar 2025 17:22:03 -0700 Linus Torvalds wrote:
> > So I think the real fix is something like this ENTIRELY UNTESTED
> > patch. Whitespace-damaged again to make sure people don't apply this
> > mindlessly, it needs more thought:
>
> .. and that ended up being even more whitespace-damaged than I meant
> to make it, because it also line-wrapped.
>
> Oh well. Not pretty, but I hope people still get the idea.
>
> And I just actually tried doing a build after touching the .config
> file, and it did seem to work.

Excellent, can confirm that it works for me, too!

Thanks!!

> But since I had _also_ messed with the config file on purpose earlier,
> I'm not sure I'm actually testing the thing the networking builds
> trigger. So I might be entirely missing something.

FWIW the exact commands our build script uses are:

make W=1 LLVM=1 O=build_allmodconfig_cl -j 6 allmodconfig
./scripts/config --file build_allmodconfig_cl/.config -d werror -d kvm_werror -d drm_werror
make W=1 LLVM=1 O=build_allmodconfig_cl -j 6