Message ID | 20250301183612.937529-1-csander@purestorage.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | io_uring/rsrc: include io_uring_types.h in rsrc.h | expand |
Hi, > -----Original Message----- > From: Caleb Sander Mateos <csander@purestorage.com> > Sent: Sunday, March 2, 2025 2:36 AM > To: Jens Axboe <axboe@kernel.dk>; Pavel Begunkov <asml.silence@gmail.com> > Cc: Caleb Sander Mateos <csander@purestorage.com>; io- > uring@vger.kernel.org; linux-kernel@vger.kernel.org > 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 <csander@purestorage.com> > --- > 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 <lizetao1@huawei.com> --- Li Zetao
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,
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 <csander@purestorage.com> --- io_uring/rsrc.h | 1 + 1 file changed, 1 insertion(+)