Skip to contentSkip to conversation

io_uring: Add missing include for ITER_SOURCE and ITER_DEST

PATCH Applied Mark Brown 2 participants 2 messages Aug 18

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 io_uring: Add missing include for ITER_SOURCE and ITER_DEST

Fix IWYU issues:

/tmp/next/build/include/linux/io_uring_types.h:56:32: error: 'ITER_DEST' undeclared here (not in a function)
56 | IO_BUF_DEST = 1 << ITER_DEST,
| ^~~~~~~~~
/tmp/next/build/include/linux/io_uring_types.h:57:32: error: 'ITER_SOURCE' undeclared here (not in a function)
57 | IO_BUF_SOURCE = 1 << ITER_SOURCE,

      |                                ^~~~~~~~~~~
Fixes 95961b72c57b2 ("io_uring/rsrc: rename and export IO_IMU_DEST / IO_IMU_SOURCE")
---
 include/linux/io_uring_types.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/io_uring_types.h +1 -0
index b516d9feb0f14..39629ee77b911 100644
@@ -6,6 +6,7 @@
 #include <linux/task_work.h>
 #include <linux/bitmap.h>
 #include <linux/llist.h>
+#include <linux/uio.h>
 #include <uapi/linux/io_uring.h>
 
 struct iou_loop_params;
Signature · 1 line
2.47.3
maintainer Applied
#1 lore raw
Quoted 9 lines · Mark Brown

Fix IWYU issues:

/tmp/next/build/include/linux/io_uring_types.h:56:32: error: 'ITER_DEST' undeclared here (not in a function)
56 | IO_BUF_DEST = 1 << ITER_DEST,
| ^~~~~~~~~
/tmp/next/build/include/linux/io_uring_types.h:57:32: error: 'ITER_SOURCE' undeclared here (not in a function)
57 | IO_BUF_SOURCE = 1 << ITER_SOURCE,

Quoted 3 lines
      |                                ^~~~~~~~~~~

[...]

Applied, thanks!

[1/1] io_uring: Add missing include for ITER_SOURCE and ITER_DEST

      commit: 881dc9dd66d2367e7fe1be0f953a8837cb3b26a9

Best regards,

Signature · 1 line
Jens Axboe