aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smbdirect.c
diff options
context:
space:
mode:
authorSteve French <smfrench@gmail.com>2018-01-24 23:07:41 -0600
committerSteve French <smfrench@gmail.com>2018-01-26 17:03:00 -0600
commit2026b06e9ce8521dae1a71654dc5a39e7ce3b871 (patch)
treef59794a7ba0a68e0886223423e42b4d81b21a07e /fs/cifs/smbdirect.c
parentCIFS: dump IPC tcon in debug proc file (diff)
downloadlinux-dev-2026b06e9ce8521dae1a71654dc5a39e7ce3b871.tar.xz
linux-dev-2026b06e9ce8521dae1a71654dc5a39e7ce3b871.zip
Cleanup some minor endian issues in smb3 rdma
Minor cleanup of some sparse warnings (including a few misc endian fixes for the new smb3 rdma code) Signed-off-by: Steve French <smfrench@gmail.com> Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Diffstat (limited to '')
-rw-r--r--fs/cifs/smbdirect.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/cifs/smbdirect.c b/fs/cifs/smbdirect.c
index f9234ed83a60..5130492847eb 100644
--- a/fs/cifs/smbdirect.c
+++ b/fs/cifs/smbdirect.c
@@ -1855,7 +1855,8 @@ try_again:
* consumed. But this will require more changes to upper layer code, and also
* need to consider packet boundaries while they still being reassembled.
*/
-int smbd_recv_buf(struct smbd_connection *info, char *buf, unsigned int size)
+static int smbd_recv_buf(struct smbd_connection *info, char *buf,
+ unsigned int size)
{
struct smbd_response *response;
struct smbd_data_transfer *data_transfer;
@@ -1992,7 +1993,7 @@ read_rfc1002_done:
* to_read: the length of data to read
* return value: actual data read
*/
-int smbd_recv_page(struct smbd_connection *info,
+static int smbd_recv_page(struct smbd_connection *info,
struct page *page, unsigned int to_read)
{
int ret;