Re: [PATCH v2 4/5] kbuild: uapi: upgrade check_sizetypes() warning to error
From: Nathan Chancellor
Date: Thu Oct 09 2025 - 12:57:36 EST
On Wed, Oct 08, 2025 at 09:52:02PM +0200, Nicolas Schier wrote:
> Good question. I think you're right, that header compiling should be
> enough.
>
> I cannot think of a sensible way that with successful header compile
> test for an UAPI header file that is not contained.
>
> Setting USERCFLAGS='-include something/like/types.h' during header
> compilation may hide a missing '#include <linux/types.h>', but I don't
> think that this is a good reason to keep the checking.
Yeah that seems extremely unlikely to me...
Okay, I think I will send Geert's fix for 6.18 then send a patch in a
couple of weeks that removes this check from headers_check.pl
altogether for 6.19.
Cheers,
Nathan