On Thu, Oct 1, 2026 at 11:06 AM David Marchand <[email protected]>
wrote:

> From: Maxime Coquelin <[email protected]>
>
> This patch updates imported UAPI headers to v6.19, in order
> to exercise the new compatibility define for __counted_by.
>
> Since __counted_by is introduced by linux/stddef.h we need to import it,
> and the headers, included by already imported headers, leading to its
> inclusion.
>
> One complication is that linux/types.h contains a guard that must be
> sanitized using the same method as the Linux kernel.
> For this, add a dependency on the unifdef tool.
>
> We also need to fix net/nbl which does not include the VFIO uapi header
> first.
>
> Signed-off-by: Maxime Coquelin <[email protected]>
> Signed-off-by: David Marchand <[email protected]>
> ---
> Changes since v1:
> - dropped wrapper on __counted_by,
> - updated import process and added use of unidef,
> - fixed net/nbl driver,
> - imported needed uapi headers,
>
> ---
>  devtools/linux-uapi.sh                   |  6 ++
>  doc/guides/contributing/linux_uapi.rst   |  2 +
>  drivers/net/nbl/nbl_common/nbl_userdev.c |  3 +-
>  kernel/linux/uapi/linux/posix_types.h    | 38 ++++++++++++
>  kernel/linux/uapi/linux/stddef.h         | 74 ++++++++++++++++++++++++
>  kernel/linux/uapi/linux/types.h          | 58 +++++++++++++++++++
>  kernel/linux/uapi/linux/vduse.h          |  4 +-
>  kernel/linux/uapi/linux/vfio.h           | 42 +++++++++++++-
>  kernel/linux/uapi/version                |  2 +-
>  9 files changed, 223 insertions(+), 6 deletions(-)
>  create mode 100644 kernel/linux/uapi/linux/posix_types.h
>  create mode 100644 kernel/linux/uapi/linux/stddef.h
>  create mode 100644 kernel/linux/uapi/linux/types.h
>
>
>
Reviewed-by: Maxime Coquelin <[email protected]>

Thanks!
Maxime

Reply via email to