cifs: remove minor build warning 5.15-backport
authorSteve French <stfrench@microsoft.com>
Sat, 16 Jul 2022 04:57:08 +0000 (23:57 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 21 Jul 2022 15:40:05 +0000 (10:40 -0500)
The build warning:
  warning: symbol 'cifs_tcp_ses_lock' was not declared. Should it be static?
can be distracting. Fix two of these.

Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h

index 69a1c5166dca42d3015a137185afc8cab8b94ac4..adfa1ef71c481afa69e8860444dae11bdf52f091 100644 (file)
@@ -75,6 +75,8 @@ atomic_t small_buf_alloc_count;
 atomic_t total_buf_alloc_count;
 atomic_t total_small_buf_alloc_count;
 #endif/* STATS2 */
+struct list_head       cifs_tcp_ses_list;
+spinlock_t             cifs_tcp_ses_lock;
 static const struct super_operations cifs_super_ops;
 unsigned int CIFSMaxBufSize = CIFS_MAX_MSGSIZE;
 module_param(CIFSMaxBufSize, uint, 0444);
index ad36c639e0acc9531b2f8459a5fb281f56b6426c..dbdcb5d991077c6b093788694be1b41a333ec3be 100644 (file)
@@ -1946,7 +1946,7 @@ require use of the stronger protocol */
  * sessions (and from that the tree connections) can be found
  * by iterating over cifs_tcp_ses_list
  */
-GLOBAL_EXTERN struct list_head         cifs_tcp_ses_list;
+extern struct list_head                cifs_tcp_ses_list;
 
 /*
  * This lock protects the cifs_tcp_ses_list, the list of smb sessions per
@@ -1958,7 +1958,7 @@ GLOBAL_EXTERN struct list_head            cifs_tcp_ses_list;
  * tcon->open_file_lock and that before file->file_info_lock since the
  * structure order is cifs_socket-->cifs_ses-->cifs_tcon-->cifs_file
  */
-GLOBAL_EXTERN spinlock_t               cifs_tcp_ses_lock;
+extern spinlock_t              cifs_tcp_ses_lock;
 
 /*
  * Global transaction id (XID) information