Skip to contentSkip to conversation

io_uring/rsrc: include io_uring_types.h in rsrc.h

PATCH Applied Caleb Sander Mateos 3 participants 3 messages Mar 1, 2025 – Mar 4, 2025 io_uring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 io_uring/rsrc: include io_uring_types.h in rsrc.h

io_uring/rsrc.h uses several types from include/linux/io_uring_types.h. Include io_uring_types.h explicitly in rsrc.h to avoid depending on users of rsrc.h including io_uring_types.h first.

---
 io_uring/rsrc.h | 1 +
 1 file changed, 1 insertion(+)
io_uring/rsrc.h +1 -0
index 8f912aa6bcc9..f10a1252b3e9 100644
@@ -1,9 +1,10 @@
 // SPDX-License-Identifier: GPL-2.0
 #ifndef IOU_RSRC_H
 #define IOU_RSRC_H
 
+#include <linux/io_uring_types.h>
 #include <linux/lockdep.h>
 
 enum {
 	IORING_RSRC_FILE		= 0,
 	IORING_RSRC_BUFFER		= 1,
Signature · 1 line
2.45.2
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 33 lines

-----Original Message-----
From: Caleb Sander Mateos <[email protected]>
Sent: Sunday, March 2, 2025 2:36 AM
To: Jens Axboe <[email protected]>; Pavel Begunkov <[email protected]>
Cc: Caleb Sander Mateos <[email protected]>; io- [email protected]; [email protected]
Subject: [PATCH] io_uring/rsrc: include io_uring_types.h in rsrc.h

io_uring/rsrc.h uses several types from include/linux/io_uring_types.h. Include io_uring_types.h explicitly in rsrc.h to avoid depending on users of rsrc.h including io_uring_types.h first.

---
 io_uring/rsrc.h | 1 +
 1 file changed, 1 insertion(+)
io_uring/rsrc.h index 8f912aa6bcc9..f10a1252b3e9 renamed from io_uring/rsrc.h +0 -0

100644

io_uring/rsrc.h +1 -1
@@ -1,9 +1,10 @@
 // SPDX-License-Identifier: GPL-2.0
 #ifndef IOU_RSRC_H
 #define IOU_RSRC_H
 
+#include <linux/io_uring_types.h>
 #include <linux/lockdep.h>
 
 enum {
 	IORING_RSRC_FILE		= 0,
 	IORING_RSRC_BUFFER		= 1,
--
Quoted 2 lines

2.45.2

---
Li Zetao

maintainer Applied
#2 lore raw
In reply to Caleb Sander Mateos
Quoted 5 lines · Caleb Sander Mateos

io_uring/rsrc.h uses several types from include/linux/io_uring_types.h. Include io_uring_types.h explicitly in rsrc.h to avoid depending on users of rsrc.h including io_uring_types.h first.

Applied, thanks!

[1/1] io_uring/rsrc: include io_uring_types.h in rsrc.h

      commit: a1967280a1e5fb2c331f23d162b3672d64ba2549

Best regards,

Signature · 1 line
Jens Axboe