* [PATCH] io_uring/rsrc: include io_uring_types.h in rsrc.h
@ 2025-03-01 18:36 Caleb Sander Mateos
2025-03-03 6:20 ` lizetao
2025-03-04 14:16 ` Jens Axboe
0 siblings, 2 replies; 3+ messages in thread
From: Caleb Sander Mateos @ 2025-03-01 18:36 UTC (permalink / raw)
To: Jens Axboe, Pavel Begunkov; +Cc: Caleb Sander Mateos, io-uring, linux-kernel
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.
Signed-off-by: Caleb Sander Mateos <[email protected]>
---
io_uring/rsrc.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/io_uring/rsrc.h b/io_uring/rsrc.h
index 8f912aa6bcc9..f10a1252b3e9 100644
--- a/io_uring/rsrc.h
+++ b/io_uring/rsrc.h
@@ -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,
--
2.45.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH] io_uring/rsrc: include io_uring_types.h in rsrc.h
2025-03-01 18:36 [PATCH] io_uring/rsrc: include io_uring_types.h in rsrc.h Caleb Sander Mateos
@ 2025-03-03 6:20 ` lizetao
2025-03-04 14:16 ` Jens Axboe
1 sibling, 0 replies; 3+ messages in thread
From: lizetao @ 2025-03-03 6:20 UTC (permalink / raw)
To: Caleb Sander Mateos
Cc: [email protected], [email protected],
Jens Axboe, Pavel Begunkov
Hi,
> -----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.
>
> Signed-off-by: Caleb Sander Mateos <[email protected]>
> ---
> io_uring/rsrc.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/io_uring/rsrc.h b/io_uring/rsrc.h index 8f912aa6bcc9..f10a1252b3e9
> 100644
> --- a/io_uring/rsrc.h
> +++ b/io_uring/rsrc.h
> @@ -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,
> --
> 2.45.2
>
Reviewed-by: Li Zetao <[email protected]>
---
Li Zetao
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] io_uring/rsrc: include io_uring_types.h in rsrc.h
2025-03-01 18:36 [PATCH] io_uring/rsrc: include io_uring_types.h in rsrc.h Caleb Sander Mateos
2025-03-03 6:20 ` lizetao
@ 2025-03-04 14:16 ` Jens Axboe
1 sibling, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2025-03-04 14:16 UTC (permalink / raw)
To: Pavel Begunkov, Caleb Sander Mateos; +Cc: io-uring, linux-kernel
On Sat, 01 Mar 2025 11:36:11 -0700, Caleb Sander Mateos wrote:
> 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,
--
Jens Axboe
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-04 14:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-01 18:36 [PATCH] io_uring/rsrc: include io_uring_types.h in rsrc.h Caleb Sander Mateos
2025-03-03 6:20 ` lizetao
2025-03-04 14:16 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox