Skip to contentSkip to conversation

fs/9p: fix warnings found by checkpatch.pl

PATCH In review Sohaib Mohamed 2 participants 2 messages Oct 1, 2021 9P file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/9p: fix warnings found by checkpatch.pl

---
 fs/9p/v9fs.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
fs/9p/v9fs.h +3 -3
index 92124b235a6d..5dd031252236 100644
@@ -135,8 +135,8 @@ static inline struct fscache_cookie *v9fs_inode_cookie(struct v9fs_inode *v9inod
 
 extern int v9fs_show_options(struct seq_file *m, struct dentry *root);
 
-struct p9_fid *v9fs_session_init(struct v9fs_session_info *, const char *,
-									char *);
+struct p9_fid *v9fs_session_init(struct v9fs_session_info *v9ses, const char
+		*dev_name, char *data);
 extern void v9fs_session_close(struct v9fs_session_info *v9ses);
 extern void v9fs_session_cancel(struct v9fs_session_info *v9ses);
 extern void v9fs_session_begin_cancel(struct v9fs_session_info *v9ses);
@@ -167,7 +167,7 @@ extern struct inode *v9fs_inode_from_fid_dotl(struct v9fs_session_info *v9ses,
 
 static inline struct v9fs_session_info *v9fs_inode2v9ses(struct inode *inode)
 {
-	return (inode->i_sb->s_fs_info);
+	return inode->i_sb->s_fs_info;
 }
 
 static inline struct v9fs_session_info *v9fs_dentry2v9ses(struct dentry *dentry)
Signature · 1 line
2.25.1
#1 lore raw
Quoted 1 line · Sohaib Mohamed

try using checkpatch on your proposed patch.

fs/9p/v9fs.h

Quoted 1 line
fs/9p/v9fs.h +0 -0

[]

fs/9p/v9fs.h static inline struct fscache_cookie *v9fs_inode_cookie(struct v9fs_inode *v9inod · line 139

Quoted 10 lines
fs/9p/v9fs.h +0 -0
@@ -135,8 +135,8 @@ static inline struct fscache_cookie *v9fs_inode_cookie(struct v9fs_inode *v9inod

 extern int v9fs_show_options(struct seq_file *m, struct dentry *root);

fs/9p/v9fs.h +2 -2
-struct p9_fid *v9fs_session_init(struct v9fs_session_info *, const char *,
-									char *);
+struct p9_fid *v9fs_session_init(struct v9fs_session_info *v9ses, const char
+		*dev_name, char *data);

That's really not pretty as it separates the type of the 2nd argument.

Perhaps:

struct p9_fid *v9fs_session_init(struct v9fs_session_info *v9ses,

				 const char *dev_name, char *data);