Re: [PATCH net-next] stddef: don't include compiler_types.h in the uAPI header

Jakub Kicinski
2025-08-26T13:47:56Z

On Mon, 25 Aug 2025 19:54:44 -0700 Kees Cook wrote:
> > Not sure this is the most fortunate approach, personally I'd rather wrap
> > our empty user-space-facing defines under ifndef __KERNEL__. I think
> > it'd be better from "include what you need" perspective. Perhaps stddef
> > pulling in compiler annotations is expected, dunno...
>
> I'm trying to leave the door open for userspace to start using these, if
> they defined them too.

Makes sense.