[PATCH 1/2] maint: update for linux v6.11-rc7
Gleb Fotengauer-Malinovskiy
glebfm at altlinux.org
Mon Sep 9 15:17:00 UTC 2024
* maint/ioctls_sym.sh: Add a workaround for the
drm/xe_drm.h header.
---
maint/ioctls_sym.sh | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/maint/ioctls_sym.sh b/maint/ioctls_sym.sh
index 9d726b80e..d03e8f36c 100755
--- a/maint/ioctls_sym.sh
+++ b/maint/ioctls_sym.sh
@@ -371,6 +371,14 @@ process_file()
# Filter out the code that references unknown types.
sed '/^struct via_file_private/,/^}/d' < "$s" > "$tmpdir/$f"
;;
+ *drm/xe_drm.h)
+ sed -E '/^enum drm_xe/,/^};/d' < "$s" > "$tmpdir/$f"
+ sed -En '/^enum drm_xe/,/^};/ s/^[[:space:]].*/&/p' < "$s" |
+ sed -n 's/^[[:space:]]*\([A-Z][A-Z_0-9]*\)[[:space:]]*=[[:space:]]*_\(IO\|IOW\|IOR\|IOWR\|IOC\)[[:space:]]*(/#define \1 _\2(/
+ s/^\(#define .*)\),$/\1/p
+ s/^\(#define .*,\)$/\1 \\/p
+ s/^\([[:space:]]\+[^),]\+)\),$/\1/p' >> "$tmpdir/$f"
+ ;;
*linux/dma-buf.h)
# Filter out duplicates.
sed '/\<DMA_BUF_SET_NAME\>/d' < "$s" > "$tmpdir/$f"
--
glebfm
More information about the Strace-devel
mailing list