Skip to content

Commit

Permalink
move a few externs to smbdirect.h to eliminate warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Ronnie Sahlberg <[email protected]>
  • Loading branch information
smfrench committed Jan 26, 2018
1 parent 97f4b72 commit 6b31471
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 0 additions & 9 deletions fs/cifs/cifs_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
9 changes: 9 additions & 0 deletions fs/cifs/smbdirect.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@
#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,
Expand Down

0 comments on commit 6b31471

Please sign in to comment.