2021-04-08 09:30:01

by GONG, Ruiqi

[permalink] [raw]
Subject: [PATCH -next] cifsd: remove unused header <linux/version.h>

Remove the header <linux/version.h> that is not needed.

Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Ruiqi Gong <[email protected]>
---
fs/cifsd/mgmt/tree_connect.c | 1 -
fs/cifsd/mgmt/user_session.c | 1 -
fs/cifsd/mgmt/user_session.h | 1 -
3 files changed, 3 deletions(-)

diff --git a/fs/cifsd/mgmt/tree_connect.c b/fs/cifsd/mgmt/tree_connect.c
index d3f28b10db4b..b9cd8fc46e5e 100644
--- a/fs/cifsd/mgmt/tree_connect.c
+++ b/fs/cifsd/mgmt/tree_connect.c
@@ -5,7 +5,6 @@

#include <linux/list.h>
#include <linux/slab.h>
-#include <linux/version.h>
#include <linux/xarray.h>

#include "../buffer_pool.h"
diff --git a/fs/cifsd/mgmt/user_session.c b/fs/cifsd/mgmt/user_session.c
index bd5789b7e08e..52c5c036ecf9 100644
--- a/fs/cifsd/mgmt/user_session.c
+++ b/fs/cifsd/mgmt/user_session.c
@@ -6,7 +6,6 @@
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/rwsem.h>
-#include <linux/version.h>
#include <linux/xarray.h>

#include "ksmbd_ida.h"
diff --git a/fs/cifsd/mgmt/user_session.h b/fs/cifsd/mgmt/user_session.h
index 1a97c851f2fc..ad5c0430b62a 100644
--- a/fs/cifsd/mgmt/user_session.h
+++ b/fs/cifsd/mgmt/user_session.h
@@ -7,7 +7,6 @@
#define __USER_SESSION_MANAGEMENT_H__

#include <linux/hashtable.h>
-#include <linux/version.h>
#include <linux/xarray.h>

#include "../smb_common.h"