summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2021-05-26 18:01:08 +0900
committerNamjae Jeon <namjae.jeon@samsung.com>2021-05-26 18:13:59 +0900
commitfc2d1b58c4f2c7240093d738ca99cfcf7a8b3107 (patch)
tree38fbef25ab809c13d8d14535813769a7a476b1f8 /fs
parentc986ed981ae6a622a453c533389994b6aed6359b (diff)
cifsd: Prefer kernel type 'u16' over 'uint16_t'
Fix a warning from checkpatch.pl --strict: CHECK: Prefer kernel type 'u16' over 'uint16_t' #112: FILE: server.c:112: + uint16_t command; Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/cifsd/server.c4
-rw-r--r--fs/cifsd/smb2pdu.c2
-rw-r--r--fs/cifsd/smb_common.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/fs/cifsd/server.c b/fs/cifsd/server.c
index 4ba43e788ce9..a99963b849d5 100644
--- a/fs/cifsd/server.c
+++ b/fs/cifsd/server.c
@@ -106,10 +106,10 @@ static inline int check_conn_state(struct ksmbd_work *work)
#define TCP_HANDLER_ABORT 1
static int __process_request(struct ksmbd_work *work, struct ksmbd_conn *conn,
- uint16_t *cmd)
+ u16 *cmd)
{
struct smb_version_cmds *cmds;
- uint16_t command;
+ u16 command;
int ret;
if (check_conn_state(work))
diff --git a/fs/cifsd/smb2pdu.c b/fs/cifsd/smb2pdu.c
index 84b243b3895a..212cdffd27bc 100644
--- a/fs/cifsd/smb2pdu.c
+++ b/fs/cifsd/smb2pdu.c
@@ -193,7 +193,7 @@ int is_smb2_rsp(struct ksmbd_work *work)
*
* Return: smb2 request command value
*/
-uint16_t get_smb2_cmd_val(struct ksmbd_work *work)
+u16 get_smb2_cmd_val(struct ksmbd_work *work)
{
struct smb2_hdr *rcv_hdr;
diff --git a/fs/cifsd/smb_common.h b/fs/cifsd/smb_common.h
index 2d7b1c693ff4..6e7404b8db96 100644
--- a/fs/cifsd/smb_common.h
+++ b/fs/cifsd/smb_common.h
@@ -469,7 +469,7 @@ struct filesystem_posix_info {
} __packed;
struct smb_version_ops {
- uint16_t (*get_cmd_val)(struct ksmbd_work *swork);
+ u16 (*get_cmd_val)(struct ksmbd_work *swork);
int (*init_rsp_hdr)(struct ksmbd_work *swork);
void (*set_rsp_status)(struct ksmbd_work *swork, __le32 err);
int (*allocate_rsp_buf)(struct ksmbd_work *work);