fs/cifs/smb2pdu.c: Make SMB2_notify_init static
authorzhengbin <zhengbin13@huawei.com>
Mon, 23 Sep 2019 07:06:18 +0000 (15:06 +0800)
committerSteve French <stfrench@microsoft.com>
Tue, 24 Sep 2019 03:49:05 +0000 (22:49 -0500)
Fix sparse warnings:

fs/cifs/smb2pdu.c:3200:1: warning: symbol 'SMB2_notify_init' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2pdu.c

index 5f2491e..ea08e61 100644 (file)
@@ -3181,7 +3181,7 @@ SMB2_get_srv_num(const unsigned int xid, struct cifs_tcon *tcon,
  * See MS-SMB2 2.2.35 and 2.2.36
  */
 
-int
+static int
 SMB2_notify_init(const unsigned int xid, struct smb_rqst *rqst,
                struct cifs_tcon *tcon, u64 persistent_fid, u64 volatile_fid,
                u32 completion_filter, bool watch_tree)