On 5/7/26 08:23, gaosong wrote:
Ping~

在 2026/4/27 下午3:00, Song Gao 写道:
Linux kernel introduced a new UAPI header file typelimits.h in the 7.1
development cycle (commit merged in Jan 2026). This file is required by
ethtool.h and other headers that include it.

Since QEMU's update script only copies headers explicitly listed in the
for loop, typelimits.h was missing after updating to newer kernel
versions, causing compilation errors like:

   fatal error: standard-headers/linux/typelimits.h: No such file or directory

Add typelimits.h to the list of headers processed by cp_portable() to
ensure it is properly copied and sanitized into the QEMU source tree

Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Song Gao <[email protected]>
---
  scripts/update-linux-headers.sh | 1 +
  1 file changed, 1 insertion(+)

diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh
index 386d7a38e7..471f9cc71e 100755
--- a/scripts/update-linux-headers.sh
+++ b/scripts/update-linux-headers.sh
@@ -255,6 +255,7 @@ for i in "$hdrdir"/include/linux/*virtio*.h \
           "$hdrdir/include/linux/vhost_types.h" \
           "$hdrdir/include/linux/vmclock-abi.h" \
           "$hdrdir/include/linux/nitro_enclaves.h" \
+         "$hdrdir/include/linux/typelimits.h" \
           "$hdrdir/include/linux/sysinfo.h"; do
      cp_portable "$i" "$output/include/standard-headers/linux"
  done


There is one issue with this patch. The headers should be sanitized.

See :

https://lore.kernel.org/qemu-devel/[email protected]


Thanks,

C.


Reply via email to