Skip to contentSkip to conversation

ksmbd,transport_rdma.c: Don't include rwlock.h directly

PATCH Mike Galbraith 2 participants 3 messages Sep 12, 2021

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

rwlock.h specifically asks to not be included directly.

In fact, the proper spinlock.h include isn't needed either, it comes with the huge pile that kthread.h ends up pulling in, so just drop it entirely.

---
 fs/ksmbd/transport_rdma.c |    1 -
 1 file changed, 1 deletion(-)
fs/ksmbd/transport_rdma.c +0 -1
@@ -20,7 +20,6 @@
 #define SUBMOD_NAME	"smb_direct"
 
 #include <linux/kthread.h>
-#include <linux/rwlock.h>
 #include <linux/list.h>
 #include <linux/mempool.h>
 #include <linux/highmem.h>
#1 lore raw

typing hard.. Thag forget type [patch]

Quoted 23 lines · Mike Galbraith

rwlock.h specifically asks to not be included directly.

In fact, the proper spinlock.h include isn't needed either, it comes with the huge pile that kthread.h ends up pulling in, so just drop it entirely.

---
 fs/ksmbd/transport_rdma.c |    1 -

 1 file changed, 1 deletion(-)
fs/ksmbd/transport_rdma.c +0 -1
@@ -20,7 +20,6 @@
  #define SUBMOD_NAME    "smb_direct"
 
  #include <linux/kthread.h>
-#include <linux/rwlock.h>
  #include <linux/list.h>
  #include <linux/mempool.h>
  #include <linux/highmem.h>
maintainer
#2 lore raw

2021-09-12 11:23 GMT+09:00, Mike Galbraith <[email protected]>:

Quoted 1 line

typing hard.. Thag forget type [patch]

I will apply this patch, Thanks for your patch!

Quoted 27 lines · Mike Galbraith
Quoted 23 lines

rwlock.h specifically asks to not be included directly.

In fact, the proper spinlock.h include isn't needed either, it comes with the huge pile that kthread.h ends up pulling in, so just drop it entirely.

---
 fs/ksmbd/transport_rdma.c |    1 -
 1 file changed, 1 deletion(-)
fs/ksmbd/transport_rdma.c +0 -1
@@ -20,7 +20,6 @@
 #define SUBMOD_NAME    "smb_direct"
 
 #include <linux/kthread.h>
-#include <linux/rwlock.h>
 #include <linux/list.h>
 #include <linux/mempool.h>
 #include <linux/highmem.h>