* [PATCH 0/2] Minor clean-ups for nvme and nvme-fabrics
@ 2019-05-11 13:42 Minwoo Im
2019-05-11 13:42 ` [PATCH 1/2] nvme: Fix typos in nvme status code values Minwoo Im
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Minwoo Im @ 2019-05-11 13:42 UTC (permalink / raw)
Here's minor patchset for nvme and nvme-fabrics.
The first one fixes typos in nvme status code name. Once it's accepted,
nvme-cli can be updatd soon.
The second removes a unused argument in nvmf_create_ctrl().
Please review.
Thanks,
Minwoo Im (2):
nvme: Fix typos in nvme status code values
nvme-fabrics: Remove unused argument
drivers/nvme/host/fabrics.c | 4 ++--
include/linux/nvme.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
--
2.17.1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/2] nvme: Fix typos in nvme status code values
2019-05-11 13:42 [PATCH 0/2] Minor clean-ups for nvme and nvme-fabrics Minwoo Im
@ 2019-05-11 13:42 ` Minwoo Im
2019-05-11 19:02 ` Chaitanya Kulkarni
2019-05-12 14:34 ` Sagi Grimberg
2019-05-11 13:42 ` [PATCH 2/2] nvme-fabrics: Remove unused argument Minwoo Im
2019-05-13 14:01 ` [PATCH 0/2] Minor clean-ups for nvme and nvme-fabrics Christoph Hellwig
2 siblings, 2 replies; 10+ messages in thread
From: Minwoo Im @ 2019-05-11 13:42 UTC (permalink / raw)
Fix typos in enumeration names for nvme status:
s/ACIVATE/ACTIVATE
s/INSUFFICENT/INSUFFICIENT
Signed-off-by: Minwoo Im <minwoo.im.dev at gmail.com>
---
include/linux/nvme.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/nvme.h b/include/linux/nvme.h
index c40720cb59ac..8028adacaff3 100644
--- a/include/linux/nvme.h
+++ b/include/linux/nvme.h
@@ -1246,9 +1246,9 @@ enum {
NVME_SC_FW_NEEDS_SUBSYS_RESET = 0x110,
NVME_SC_FW_NEEDS_RESET = 0x111,
NVME_SC_FW_NEEDS_MAX_TIME = 0x112,
- NVME_SC_FW_ACIVATE_PROHIBITED = 0x113,
+ NVME_SC_FW_ACTIVATE_PROHIBITED = 0x113,
NVME_SC_OVERLAPPING_RANGE = 0x114,
- NVME_SC_NS_INSUFFICENT_CAP = 0x115,
+ NVME_SC_NS_INSUFFICIENT_CAP = 0x115,
NVME_SC_NS_ID_UNAVAILABLE = 0x116,
NVME_SC_NS_ALREADY_ATTACHED = 0x118,
NVME_SC_NS_IS_PRIVATE = 0x119,
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/2] nvme-fabrics: Remove unused argument
2019-05-11 13:42 [PATCH 0/2] Minor clean-ups for nvme and nvme-fabrics Minwoo Im
2019-05-11 13:42 ` [PATCH 1/2] nvme: Fix typos in nvme status code values Minwoo Im
@ 2019-05-11 13:42 ` Minwoo Im
2019-05-11 21:50 ` Chaitanya Kulkarni
2019-05-12 14:35 ` Sagi Grimberg
2019-05-13 14:01 ` [PATCH 0/2] Minor clean-ups for nvme and nvme-fabrics Christoph Hellwig
2 siblings, 2 replies; 10+ messages in thread
From: Minwoo Im @ 2019-05-11 13:42 UTC (permalink / raw)
The variable 'count' is not currently used by nvmf_create_ctrl(), so
remove it.
Signed-off-by: Minwoo Im <minwoo.im.dev at gmail.com>
---
drivers/nvme/host/fabrics.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c
index 592d1e61ef7e..5838f7cd53ac 100644
--- a/drivers/nvme/host/fabrics.c
+++ b/drivers/nvme/host/fabrics.c
@@ -978,7 +978,7 @@ EXPORT_SYMBOL_GPL(nvmf_free_options);
NVMF_OPT_DISABLE_SQFLOW)
static struct nvme_ctrl *
-nvmf_create_ctrl(struct device *dev, const char *buf, size_t count)
+nvmf_create_ctrl(struct device *dev, const char *buf)
{
struct nvmf_ctrl_options *opts;
struct nvmf_transport_ops *ops;
@@ -1073,7 +1073,7 @@ static ssize_t nvmf_dev_write(struct file *file, const char __user *ubuf,
goto out_unlock;
}
- ctrl = nvmf_create_ctrl(nvmf_device, buf, count);
+ ctrl = nvmf_create_ctrl(nvmf_device, buf);
if (IS_ERR(ctrl)) {
ret = PTR_ERR(ctrl);
goto out_unlock;
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 1/2] nvme: Fix typos in nvme status code values
2019-05-11 13:42 ` [PATCH 1/2] nvme: Fix typos in nvme status code values Minwoo Im
@ 2019-05-11 19:02 ` Chaitanya Kulkarni
2019-05-12 14:34 ` Sagi Grimberg
1 sibling, 0 replies; 10+ messages in thread
From: Chaitanya Kulkarni @ 2019-05-11 19:02 UTC (permalink / raw)
Looks good.
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>
On 5/11/19 6:43 AM, Minwoo Im wrote:
> + NVME_SC_NS_INSUFFICIENT_CAP = 0x115,
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/2] nvme-fabrics: Remove unused argument
2019-05-11 13:42 ` [PATCH 2/2] nvme-fabrics: Remove unused argument Minwoo Im
@ 2019-05-11 21:50 ` Chaitanya Kulkarni
2019-05-11 22:04 ` Minwoo Im
2019-05-12 14:35 ` Sagi Grimberg
1 sibling, 1 reply; 10+ messages in thread
From: Chaitanya Kulkarni @ 2019-05-11 21:50 UTC (permalink / raw)
Variable "count" use removed by any commit ?
Or it is been like that since the introduction of this function ?
On 5/11/19 6:43 AM, Minwoo Im wrote:
> The variable 'count' is not currently used by nvmf_create_ctrl(), so
> remove it.
>
> Signed-off-by: Minwoo Im <minwoo.im.dev at gmail.com>
> ---
> drivers/nvme/host/fabrics.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c
> index 592d1e61ef7e..5838f7cd53ac 100644
> --- a/drivers/nvme/host/fabrics.c
> +++ b/drivers/nvme/host/fabrics.c
> @@ -978,7 +978,7 @@ EXPORT_SYMBOL_GPL(nvmf_free_options);
> NVMF_OPT_DISABLE_SQFLOW)
>
> static struct nvme_ctrl *
> -nvmf_create_ctrl(struct device *dev, const char *buf, size_t count)
> +nvmf_create_ctrl(struct device *dev, const char *buf)
> {
> struct nvmf_ctrl_options *opts;
> struct nvmf_transport_ops *ops;
> @@ -1073,7 +1073,7 @@ static ssize_t nvmf_dev_write(struct file *file, const char __user *ubuf,
> goto out_unlock;
> }
>
> - ctrl = nvmf_create_ctrl(nvmf_device, buf, count);
> + ctrl = nvmf_create_ctrl(nvmf_device, buf);
> if (IS_ERR(ctrl)) {
> ret = PTR_ERR(ctrl);
> goto out_unlock;
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/2] nvme-fabrics: Remove unused argument
2019-05-11 21:50 ` Chaitanya Kulkarni
@ 2019-05-11 22:04 ` Minwoo Im
2019-05-12 15:23 ` Chaitanya Kulkarni
0 siblings, 1 reply; 10+ messages in thread
From: Minwoo Im @ 2019-05-11 22:04 UTC (permalink / raw)
> Variable "count" use removed by any commit ?
>
> Or it is been like that since the introduction of this function ?
If you do "blame" with the first line of this function, you can see the
count has been introduced without being used at all.
Commit 07bfcd09a ("nvme-fabrics: add a generic NVMe over Fabrics library")
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/2] nvme: Fix typos in nvme status code values
2019-05-11 13:42 ` [PATCH 1/2] nvme: Fix typos in nvme status code values Minwoo Im
2019-05-11 19:02 ` Chaitanya Kulkarni
@ 2019-05-12 14:34 ` Sagi Grimberg
1 sibling, 0 replies; 10+ messages in thread
From: Sagi Grimberg @ 2019-05-12 14:34 UTC (permalink / raw)
Reviewed-by: Sagi Grimberg <sagi at grimberg.me>
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/2] nvme-fabrics: Remove unused argument
2019-05-11 13:42 ` [PATCH 2/2] nvme-fabrics: Remove unused argument Minwoo Im
2019-05-11 21:50 ` Chaitanya Kulkarni
@ 2019-05-12 14:35 ` Sagi Grimberg
1 sibling, 0 replies; 10+ messages in thread
From: Sagi Grimberg @ 2019-05-12 14:35 UTC (permalink / raw)
Reviewed-by: Sagi Grimberg <sagi at grimberg.me>
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/2] nvme-fabrics: Remove unused argument
2019-05-11 22:04 ` Minwoo Im
@ 2019-05-12 15:23 ` Chaitanya Kulkarni
0 siblings, 0 replies; 10+ messages in thread
From: Chaitanya Kulkarni @ 2019-05-12 15:23 UTC (permalink / raw)
Looks good.
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>
On 5/11/19 3:05 PM, Minwoo Im wrote:
>> Variable "count" use removed by any commit ?
>>
>> Or it is been like that since the introduction of this function ?
> If you do "blame" with the first line of this function, you can see the
> count has been introduced without being used at all.
>
> Commit 07bfcd09a ("nvme-fabrics: add a generic NVMe over Fabrics library")
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 0/2] Minor clean-ups for nvme and nvme-fabrics
2019-05-11 13:42 [PATCH 0/2] Minor clean-ups for nvme and nvme-fabrics Minwoo Im
2019-05-11 13:42 ` [PATCH 1/2] nvme: Fix typos in nvme status code values Minwoo Im
2019-05-11 13:42 ` [PATCH 2/2] nvme-fabrics: Remove unused argument Minwoo Im
@ 2019-05-13 14:01 ` Christoph Hellwig
2 siblings, 0 replies; 10+ messages in thread
From: Christoph Hellwig @ 2019-05-13 14:01 UTC (permalink / raw)
Thanks,
applied both patches to nvme-5.2.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2019-05-13 14:01 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-11 13:42 [PATCH 0/2] Minor clean-ups for nvme and nvme-fabrics Minwoo Im
2019-05-11 13:42 ` [PATCH 1/2] nvme: Fix typos in nvme status code values Minwoo Im
2019-05-11 19:02 ` Chaitanya Kulkarni
2019-05-12 14:34 ` Sagi Grimberg
2019-05-11 13:42 ` [PATCH 2/2] nvme-fabrics: Remove unused argument Minwoo Im
2019-05-11 21:50 ` Chaitanya Kulkarni
2019-05-11 22:04 ` Minwoo Im
2019-05-12 15:23 ` Chaitanya Kulkarni
2019-05-12 14:35 ` Sagi Grimberg
2019-05-13 14:01 ` [PATCH 0/2] Minor clean-ups for nvme and nvme-fabrics Christoph Hellwig
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.