Skip to contentSkip to conversation

fuse: removed unused function fuse_uring_create() from header

PATCH Applied Luis Henriques 3 participants 3 messages Feb 7, 2025 – Feb 14, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fuse: removed unused function fuse_uring_create() from header

Function fuse_uring_create() is used only from dev_uring.c and does not need to be exposed in the header file. Furthermore, it has the wrong signature.

While there, also remove the 'struct fuse_ring' forward declaration.

---
 fs/fuse/dev_uring_i.h | 6 ------
 1 file changed, 6 deletions(-)
fs/fuse/dev_uring_i.h +0 -6
index 2102b3d0c1ae..0d67738850c5 100644
@@ -172,12 +172,6 @@ static inline bool fuse_uring_ready(struct fuse_conn *fc)
 
 #else /* CONFIG_FUSE_IO_URING */
 
-struct fuse_ring;
-
-static inline void fuse_uring_create(struct fuse_conn *fc)
-{
-}
-
 static inline void fuse_uring_destruct(struct fuse_conn *fc)
 {
 }
Reviewed-by on v1 1/1
#1 lore raw
Quoted 18 lines · Luis Henriques

Function fuse_uring_create() is used only from dev_uring.c and does not need to be exposed in the header file. Furthermore, it has the wrong signature.

While there, also remove the 'struct fuse_ring' forward declaration.

---
 fs/fuse/dev_uring_i.h | 6 ------
 1 file changed, 6 deletions(-)
fs/fuse/dev_uring_i.h +0 -0
index 2102b3d0c1ae..0d67738850c5 100644
@@ -172,12 +172,6 @@ static inline bool fuse_uring_ready(struct fuse_conn *fc)
 
 #else /* CONFIG_FUSE_IO_URING */

fs/fuse/dev_uring_i.h static inline bool fuse_uring_ready(struct fuse_conn *fc) · line 177

Quoted 10 lines
fs/fuse/dev_uring_i.h +0 -6
 
-struct fuse_ring;
-
-static inline void fuse_uring_create(struct fuse_conn *fc)
-{
-}
-
 static inline void fuse_uring_destruct(struct fuse_conn *fc)
 {
 }

Ah yes, that is left over from earlier patch sets that were still using ioctls.

maintainer Applied
#2 lore raw
In reply to Luis Henriques
Quoted 6 lines · Luis Henriques

Function fuse_uring_create() is used only from dev_uring.c and does not need to be exposed in the header file. Furthermore, it has the wrong signature.

While there, also remove the 'struct fuse_ring' forward declaration.

Applied, thanks.

Miklos