]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
move a few externs to smbdirect.h to eliminate warning
authorSteve French <smfrench@gmail.com>
Thu, 25 Jan 2018 15:28:25 +0000 (09:28 -0600)
committerSteve French <smfrench@gmail.com>
Fri, 26 Jan 2018 23:03:00 +0000 (17:03 -0600)
Quiet minor sparse warnings in new SMB3 rdma patch series
("symbol was not declared ...") by moving these externs to smbdirect.h

Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
fs/cifs/cifs_debug.c
fs/cifs/smbdirect.h

index f491340f32ad4e390f979f970ce5b626dbc90d54..c7a863219fa36b77d9587d12a18aeca2cae1d52a 100644 (file)
@@ -483,15 +483,6 @@ static const struct file_operations cifs_##name##_proc_fops = { \
        .write          = name##_write, \
 }
 
-extern int rdma_readwrite_threshold;
-extern int smbd_max_frmr_depth;
-extern int smbd_keep_alive_interval;
-extern int smbd_max_receive_size;
-extern int smbd_max_fragmented_recv_size;
-extern int smbd_max_send_size;
-extern int smbd_send_credit_target;
-extern int smbd_receive_credit_max;
-
 PROC_FILE_DEFINE(rdma_readwrite_threshold);
 PROC_FILE_DEFINE(smbd_max_frmr_depth);
 PROC_FILE_DEFINE(smbd_keep_alive_interval);
index fdb8df84fa1fecd8bf8cee3714df4face84425dd..f9038daea1945db912eb6461a4e3cddef1722772 100644 (file)
 #include <rdma/rdma_cm.h>
 #include <linux/mempool.h>
 
+extern int rdma_readwrite_threshold;
+extern int smbd_max_frmr_depth;
+extern int smbd_keep_alive_interval;
+extern int smbd_max_receive_size;
+extern int smbd_max_fragmented_recv_size;
+extern int smbd_max_send_size;
+extern int smbd_send_credit_target;
+extern int smbd_receive_credit_max;
+
 enum keep_alive_status {
        KEEP_ALIVE_NONE,
        KEEP_ALIVE_PENDING,