Skip to contentSkip to conversation

io_uring: Don't include af_unix.h.

PATCH Applied Kuniyuki Iwashima 2 participants 2 messages Feb 12, 2024 – Feb 13, 2024 io_uring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 io_uring: Don't include af_unix.h.

Changes to AF_UNIX trigger rebuild of io_uring, but io_uring does not use AF_UNIX anymore.

Let's not include af_unix.h and instead include necessary headers.

---
 io_uring/io_uring.c  | 1 -
 io_uring/rsrc.h      | 2 --
 io_uring/rw.c        | 1 +
 io_uring/uring_cmd.c | 1 +
 4 files changed, 2 insertions(+), 3 deletions(-)
io_uring/io_uring.c +0 -1
index cd9a137ad6ce..c5bfc6d42fe2 100644
@@ -59,7 +59,6 @@
 #include <linux/bvec.h>
 #include <linux/net.h>
 #include <net/sock.h>
-#include <net/af_unix.h>
 #include <linux/anon_inodes.h>
 #include <linux/sched/mm.h>
 #include <linux/uaccess.h>
io_uring/rsrc.h +0 -2
index c6f199bbee28..e21000238954 100644
@@ -2,8 +2,6 @@
 #ifndef IOU_RSRC_H
 #define IOU_RSRC_H
 
-#include <net/af_unix.h>
-
 #include "alloc_cache.h"
 
 #define IO_NODE_ALLOC_CACHE_MAX 32
io_uring/rw.c +1 -0
index d5e79d9bdc71..332bd59f19b1 100644
@@ -11,6 +11,7 @@
 #include <linux/nospec.h>
 #include <linux/compat.h>
 #include <linux/io_uring/cmd.h>
+#include <linux/indirect_call_wrapper.h>
 
 #include <uapi/linux/io_uring.h>
 
io_uring/uring_cmd.c +1 -0
index c33fca585dde..42f63adfa54a 100644
@@ -5,6 +5,7 @@
 #include <linux/io_uring/cmd.h>
 #include <linux/security.h>
 #include <linux/nospec.h>
+#include <net/sock.h>
 
 #include <uapi/linux/io_uring.h>
 #include <asm/ioctls.h>
Signature · 1 line
2.30.2
maintainer Applied
#1 lore raw
Quoted 6 lines · Kuniyuki Iwashima

Changes to AF_UNIX trigger rebuild of io_uring, but io_uring does not use AF_UNIX anymore.

Let's not include af_unix.h and instead include necessary headers.

Applied, thanks!

[1/1] io_uring: Don't include af_unix.h.

      commit: 3fb1764c6b57808ddab7fe7c242fa04c2479ef0a

Best regards,

Signature · 1 line
Jens Axboe