OSDN Git Service

ksmbd: transport_rdma: Don't include rwlock.h directly
authorMike Galbraith <efault@gmx.de>
Sun, 12 Sep 2021 02:56:26 +0000 (11:56 +0900)
committerSteve French <stfrench@microsoft.com>
Fri, 17 Sep 2021 13:58:43 +0000 (08:58 -0500)
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.

Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/transport_rdma.c

index 52b2556..3a7fa23 100644 (file)
@@ -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>