From: Tokunori Ikegami <ikegami.t@gmail.com>
To: linux-nvme@lists.infradead.org
Cc: Tokunori Ikegami <ikegami.t@gmail.com>
Subject: [PATCH 2/2] nvme/ioctl: fix unsigned value as unsigned int value
Date: Sat, 7 Jun 2025 05:16:10 +0900 [thread overview]
Message-ID: <20250606201654.9558-3-ikegami.t@gmail.com> (raw)
In-Reply-To: <20250606201654.9558-1-ikegami.t@gmail.com>
This is to fix for the checkpatch.pl warning.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
---
drivers/nvme/host/ioctl.c | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/drivers/nvme/host/ioctl.c b/drivers/nvme/host/ioctl.c
index 02edb0900413..880a40cb78d7 100644
--- a/drivers/nvme/host/ioctl.c
+++ b/drivers/nvme/host/ioctl.c
@@ -112,8 +112,9 @@ static struct request *nvme_alloc_user_request(struct request_queue *q,
}
static int nvme_map_user_request(struct request *req, u64 ubuffer,
- unsigned bufflen, void __user *meta_buffer, unsigned meta_len,
- struct iov_iter *iter, unsigned int flags)
+ unsigned int bufflen, void __user *meta_buffer,
+ unsigned int meta_len, struct iov_iter *iter,
+ unsigned int flags)
{
struct request_queue *q = req->q;
struct nvme_ns *ns = q->queuedata;
@@ -164,9 +165,9 @@ static int nvme_map_user_request(struct request *req, u64 ubuffer,
}
static int nvme_submit_user_cmd(struct request_queue *q,
- struct request *req, u64 ubuffer, unsigned bufflen,
- void __user *meta_buffer, unsigned meta_len,
- u64 *result, unsigned timeout, unsigned int flags)
+ struct request *req, u64 ubuffer, unsigned int bufflen,
+ void __user *meta_buffer, unsigned int meta_len,
+ u64 *result, unsigned int timeout, unsigned int flags)
{
struct nvme_command *cmd = nvme_req(req)->cmd;
struct nvme_ns *ns = q->queuedata;
@@ -207,7 +208,7 @@ static int nvme_submit_io(struct nvme_ns *ns, struct nvme_user_io __user *uio)
{
struct nvme_user_io io;
struct nvme_command *c;
- unsigned length, meta_len;
+ unsigned int length, meta_len;
void __user *metadata;
struct request *req;
@@ -292,7 +293,7 @@ static int nvme_user_cmd(struct nvme_ctrl *ctrl, struct nvme_ns *ns,
struct request_queue *q = ns ? ns->queue : ctrl->admin_q;
struct nvme_passthru_cmd cmd;
struct nvme_command *c;
- unsigned timeout = 0;
+ unsigned int timeout = 0;
struct request *req;
u64 result;
int status;
@@ -349,7 +350,7 @@ static int nvme_user_cmd64(struct nvme_ctrl *ctrl, struct nvme_ns *ns,
struct request_queue *q = ns ? ns->queue : ctrl->admin_q;
struct nvme_passthru_cmd64 cmd;
struct nvme_command *c;
- unsigned timeout = 0;
+ unsigned int timeout = 0;
struct request *req;
int status;
@@ -423,7 +424,7 @@ static inline struct nvme_uring_cmd_pdu *nvme_uring_cmd_pdu(
}
static void nvme_uring_task_cb(struct io_uring_cmd *ioucmd,
- unsigned issue_flags)
+ unsigned int issue_flags)
{
struct nvme_uring_cmd_pdu *pdu = nvme_uring_cmd_pdu(ioucmd);
--
2.48.1
prev parent reply other threads:[~2025-06-06 20:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-06 20:16 [PATCH 0/2] nvme/ioctl: improve user request allocation Tokunori Ikegami
2025-06-06 20:16 ` [PATCH 1/2] nvme/ioctl: split user request allocation from user command submission Tokunori Ikegami
2025-06-06 20:16 ` Tokunori Ikegami [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250606201654.9558-3-ikegami.t@gmail.com \
--to=ikegami.t@gmail.com \
--cc=linux-nvme@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).