Skip to contentSkip to conversation

fs: cifs: Remove unnecessary struct declaration

PATCH Applied Wan Jiabing 2 participants 2 messages Apr 1, 2021 – Apr 2, 2021

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

PATCH 1/1 fs: cifs: Remove unnecessary struct declaration

struct cifs_readdata is declared twice. One is declared at 208th line.
And struct cifs_readdata is defined blew.
The declaration here is not needed. Remove the duplicate.

---
 fs/cifs/cifsglob.h | 2 --
 1 file changed, 2 deletions(-)
fs/cifs/cifsglob.h +0 -2
index 67c056a9a519..ec824ab8c5ca 100644
@@ -1283,8 +1283,6 @@ struct cifs_aio_ctx {
 	bool			direct_io;
 };
 
-struct cifs_readdata;
-
 /* asynchronous read support */
 struct cifs_readdata {
 	struct kref			refcount;
Signature · 1 line
2.25.1
Applied
#1 lore raw

merged into cifs-2.6.git for-next

Quoted 27 lines · Wan Jiabing

struct cifs_readdata is declared twice. One is declared at 208th line.
And struct cifs_readdata is defined blew.
The declaration here is not needed. Remove the duplicate.

---
 fs/cifs/cifsglob.h | 2 --
 1 file changed, 2 deletions(-)
fs/cifs/cifsglob.h +0 -3
index 67c056a9a519..ec824ab8c5ca 100644
@@ -1283,8 +1283,6 @@ struct cifs_aio_ctx {
        bool                    direct_io;
 };
 
-struct cifs_readdata;
-
 /* asynchronous read support */
 struct cifs_readdata {
        struct kref                     refcount;
--

2.25.1

Signature · 3 lines
Thanks,

Steve