]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
nvme: fix typo in status code constant for self-test in progress
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Wed, 25 Jun 2025 04:16:33 +0000 (21:16 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jul 2025 11:38:07 +0000 (13:38 +0200)
Correct a typo error in the NVMe status code constant from
NVME_SC_SELT_TEST_IN_PROGRESS to NVME_SC_SELF_TEST_IN_PROGRESS to
accurately reflect its meaning.

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/constants.c
include/linux/nvme.h

index 1a0058be5821044c9b98d2bcae0c1ad0ed4589ec..dc90df9e13a2135452f03932bf62b7cbab416e67 100644 (file)
@@ -133,7 +133,7 @@ static const char * const nvme_statuses[] = {
        [NVME_SC_NS_NOT_ATTACHED] = "Namespace Not Attached",
        [NVME_SC_THIN_PROV_NOT_SUPP] = "Thin Provisioning Not Supported",
        [NVME_SC_CTRL_LIST_INVALID] = "Controller List Invalid",
-       [NVME_SC_SELT_TEST_IN_PROGRESS] = "Device Self-test In Progress",
+       [NVME_SC_SELF_TEST_IN_PROGRESS] = "Device Self-test In Progress",
        [NVME_SC_BP_WRITE_PROHIBITED] = "Boot Partition Write Prohibited",
        [NVME_SC_CTRL_ID_INVALID] = "Invalid Controller Identifier",
        [NVME_SC_SEC_CTRL_STATE_INVALID] = "Invalid Secondary Controller State",
@@ -145,7 +145,7 @@ static const char * const nvme_statuses[] = {
        [NVME_SC_BAD_ATTRIBUTES] = "Conflicting Attributes",
        [NVME_SC_INVALID_PI] = "Invalid Protection Information",
        [NVME_SC_READ_ONLY] = "Attempted Write to Read Only Range",
-       [NVME_SC_CMD_SIZE_LIM_EXCEEDED  ] = "Command Size Limits Exceeded",
+       [NVME_SC_CMD_SIZE_LIM_EXCEEDED] = "Command Size Limits Exceeded",
        [NVME_SC_ZONE_BOUNDARY_ERROR] = "Zoned Boundary Error",
        [NVME_SC_ZONE_FULL] = "Zone Is Full",
        [NVME_SC_ZONE_READ_ONLY] = "Zone Is Read Only",
index b65a1b9f2116c2a1d5c12bcf737d17965b678179..655d194f8e722c3400ac00f76841e1af0281f38f 100644 (file)
@@ -2155,7 +2155,7 @@ enum {
        NVME_SC_NS_NOT_ATTACHED         = 0x11a,
        NVME_SC_THIN_PROV_NOT_SUPP      = 0x11b,
        NVME_SC_CTRL_LIST_INVALID       = 0x11c,
-       NVME_SC_SELT_TEST_IN_PROGRESS   = 0x11d,
+       NVME_SC_SELF_TEST_IN_PROGRESS   = 0x11d,
        NVME_SC_BP_WRITE_PROHIBITED     = 0x11e,
        NVME_SC_CTRL_ID_INVALID         = 0x11f,
        NVME_SC_SEC_CTRL_STATE_INVALID  = 0x120,