summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Fotengauer-Malinovskiy <glebfm@altlinux.org>2020-03-31 22:21:10 +0300
committerDmitry V. Levin <ldv@altlinux.org>2020-03-31 19:32:08 +0000
commit92f46c2d5a2bf8dc82fe740678355af8d5c336b5 (patch)
tree88661236fb48c36c8d280154fd5168576ef8c074
parent13d85cedd4e6ef39cf6367017e382e6a47f75c5f (diff)
downloadstrace-92f46c2d5a2bf8dc82fe740678355af8d5c336b5.tar.gz
maint: update for linux v5.6
* maint/ioctls_sym.sh: Add workarounds for media/v4l2-ioctl.h and sound/pcm.h headers.
-rwxr-xr-xmaint/ioctls_sym.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/maint/ioctls_sym.sh b/maint/ioctls_sym.sh
index bf118d8fa..cc17da790 100755
--- a/maint/ioctls_sym.sh
+++ b/maint/ioctls_sym.sh
@@ -372,6 +372,17 @@ s/^\([[:space:]]\+[^),]\+)\),$/\1/' >> "$tmpdir/$f"
# Fetch one piece of code containing ioctls definitions.
sed -n '/\* s_config \*/,/ ---/p' < "$s" >> "$tmpdir/$f"
;;
+ *media/v4l2-ioctl.h)
+ echo 'struct old_timespec32 {int32_t dummy[2];};' >> "$tmpdir/$f"
+ echo 'struct old_timeval32 {int32_t dummy[2];};' >> "$tmpdir/$f"
+ # Fetch one piece of code containing ioctls definitions.
+ awk '/^struct v4l2_event_time32/{p=1}/#endif/{p=0}p{print}' < "$s" >> "$tmpdir/$f"
+ ;;
+ *sound/pcm.h)
+ echo '#include <uapi/sound/asound.h>' > "$tmpdir/$f"
+ # Fetch one piece of code containing ioctls definitions.
+ awk '/^struct snd_pcm_status64 {/{p=1}/#endif/{p=0}p{print}' < "$s" >> "$tmpdir/$f"
+ ;;
openpromio.h|*/openpromio.h|fbio.h|*/fbio.h)
# Create the file it attempts to include.
mkdir -p "$tmpdir/linux"