aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-declextract/testdata/include
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2025-04-14 08:03:20 +0200
committerDmitry Vyukov <dvyukov@google.com>2025-04-15 08:30:57 +0000
commiteb2144e822c56abb85860646d22d7ce4656fcdb1 (patch)
tree7f1d897ee854cb0c5025121e2a8646ea0c72b48d /tools/syz-declextract/testdata/include
parent851253229c4963cf9144bc2c74b5001693172559 (diff)
tools/syz-declextract: extract ioctls declared with enums
Some ioctls are declared inconsistently using enums rather than macros. Extract these as well.
Diffstat (limited to 'tools/syz-declextract/testdata/include')
-rw-r--r--tools/syz-declextract/testdata/include/uapi/file_operations.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/syz-declextract/testdata/include/uapi/file_operations.h b/tools/syz-declextract/testdata/include/uapi/file_operations.h
index f81d6886d..a4fa3a21e 100644
--- a/tools/syz-declextract/testdata/include/uapi/file_operations.h
+++ b/tools/syz-declextract/testdata/include/uapi/file_operations.h
@@ -13,6 +13,11 @@
#define FOO_IOCTL8 _IO('c', 8)
#define FOO_IOCTL9 _IO('c', 9)
+enum {
+ FOO_IOCTL10 = _IOR('c', 10, int),
+ FOO_IOCTL11 = _IOR('c', 11, int),
+};
+
struct foo_ioctl_arg {
int a, b;
};