<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Oct 1, 2026 at 11:06 AM David Marchand <<a href="mailto:david.marchand@redhat.com">david.marchand@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">From: Maxime Coquelin <<a href="mailto:maxime.coquelin@redhat.com" target="_blank">maxime.coquelin@redhat.com</a>><br>
<br>
This patch updates imported UAPI headers to v6.19, in order<br>
to exercise the new compatibility define for __counted_by.<br>
<br>
Since __counted_by is introduced by linux/stddef.h we need to import it,<br>
and the headers, included by already imported headers, leading to its<br>
inclusion.<br>
<br>
One complication is that linux/types.h contains a guard that must be<br>
sanitized using the same method as the Linux kernel.<br>
For this, add a dependency on the unifdef tool.<br>
<br>
We also need to fix net/nbl which does not include the VFIO uapi header<br>
first.<br>
<br>
Signed-off-by: Maxime Coquelin <<a href="mailto:maxime.coquelin@redhat.com" target="_blank">maxime.coquelin@redhat.com</a>><br>
Signed-off-by: David Marchand <<a href="mailto:david.marchand@redhat.com" target="_blank">david.marchand@redhat.com</a>><br>
---<br>
Changes since v1:<br>
- dropped wrapper on __counted_by,<br>
- updated import process and added use of unidef,<br>
- fixed net/nbl driver,<br>
- imported needed uapi headers,<br>
<br>
---<br>
 devtools/linux-uapi.sh                   |  6 ++<br>
 doc/guides/contributing/linux_uapi.rst   |  2 +<br>
 drivers/net/nbl/nbl_common/nbl_userdev.c |  3 +-<br>
 kernel/linux/uapi/linux/posix_types.h    | 38 ++++++++++++<br>
 kernel/linux/uapi/linux/stddef.h         | 74 ++++++++++++++++++++++++<br>
 kernel/linux/uapi/linux/types.h          | 58 +++++++++++++++++++<br>
 kernel/linux/uapi/linux/vduse.h          |  4 +-<br>
 kernel/linux/uapi/linux/vfio.h           | 42 +++++++++++++-<br>
 kernel/linux/uapi/version                |  2 +-<br>
 9 files changed, 223 insertions(+), 6 deletions(-)<br>
 create mode 100644 kernel/linux/uapi/linux/posix_types.h<br>
 create mode 100644 kernel/linux/uapi/linux/stddef.h<br>
 create mode 100644 kernel/linux/uapi/linux/types.h<br>
<br><br></blockquote><div><br></div><div>Reviewed-by: Maxime Coquelin <<a href="mailto:maxime.coquelin@redhat.com">maxime.coquelin@redhat.com</a>></div><div><br></div><div>Thanks!</div><div>Maxime </div></div></div>