mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 14:44:12 +00:00
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>
This commit is contained in:
parent
c986ed981a
commit
fc2d1b58c4
3 changed files with 4 additions and 4 deletions
|
@ -106,10 +106,10 @@ static inline int check_conn_state(struct ksmbd_work *work)
|
||||||
#define TCP_HANDLER_ABORT 1
|
#define TCP_HANDLER_ABORT 1
|
||||||
|
|
||||||
static int __process_request(struct ksmbd_work *work, struct ksmbd_conn *conn,
|
static int __process_request(struct ksmbd_work *work, struct ksmbd_conn *conn,
|
||||||
uint16_t *cmd)
|
u16 *cmd)
|
||||||
{
|
{
|
||||||
struct smb_version_cmds *cmds;
|
struct smb_version_cmds *cmds;
|
||||||
uint16_t command;
|
u16 command;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (check_conn_state(work))
|
if (check_conn_state(work))
|
||||||
|
|
|
@ -193,7 +193,7 @@ int is_smb2_rsp(struct ksmbd_work *work)
|
||||||
*
|
*
|
||||||
* Return: smb2 request command value
|
* 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;
|
struct smb2_hdr *rcv_hdr;
|
||||||
|
|
||||||
|
|
|
@ -469,7 +469,7 @@ struct filesystem_posix_info {
|
||||||
} __packed;
|
} __packed;
|
||||||
|
|
||||||
struct smb_version_ops {
|
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);
|
int (*init_rsp_hdr)(struct ksmbd_work *swork);
|
||||||
void (*set_rsp_status)(struct ksmbd_work *swork, __le32 err);
|
void (*set_rsp_status)(struct ksmbd_work *swork, __le32 err);
|
||||||
int (*allocate_rsp_buf)(struct ksmbd_work *work);
|
int (*allocate_rsp_buf)(struct ksmbd_work *work);
|
||||||
|
|
Loading…
Reference in a new issue