git: 7de3a3e919ec - stable/13 - nvme: fix spelling of Namespace

From: Chuck Tuffli <chuck_at_FreeBSD.org>
Date: Sun, 27 Feb 2022 18:16:55 UTC
The branch stable/13 has been updated by chuck:

URL: https://cgit.FreeBSD.org/src/commit/?id=7de3a3e919ecaec466d5284eb17503d499beced1

commit 7de3a3e919ecaec466d5284eb17503d499beced1
Author:     Chuck Tuffli <chuck@FreeBSD.org>
AuthorDate: 2022-02-21 18:34:46 +0000
Commit:     Chuck Tuffli <chuck@FreeBSD.org>
CommitDate: 2022-02-28 01:59:31 +0000

    nvme: fix spelling of Namespace
    
    Fix spelling of a macro definition.
    
    PR:             262141
    
    (cherry picked from commit c2318cf80a9edf5bfcd5ed20037c8d0b80a78d69)
---
 sbin/nvmecontrol/logpage.c | 2 +-
 sys/dev/nvme/nvme.h        | 2 +-
 usr.sbin/bhyve/pci_nvme.c  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sbin/nvmecontrol/logpage.c b/sbin/nvmecontrol/logpage.c
index 7daf012499a2..f7a6ef311a40 100644
--- a/sbin/nvmecontrol/logpage.c
+++ b/sbin/nvmecontrol/logpage.c
@@ -729,7 +729,7 @@ NVME_LOGPAGE(ple,
     NVME_LOG_PREDICTABLE_LATENCY_EVENT_AGGREGATE,	NULL,	"Predictable Latency Event Aggregate",
     NULL,				DEFAULT_SIZE);
 NVME_LOGPAGE(ana,
-    NVME_LOG_ASYMMETRIC_NAMESPAVE_ACCESS,	NULL,	"Asymmetric Namespace Access",
+    NVME_LOG_ASYMMETRIC_NAMESPACE_ACCESS,	NULL,	"Asymmetric Namespace Access",
     NULL,				DEFAULT_SIZE);
 NVME_LOGPAGE(pel,
     NVME_LOG_PERSISTENT_EVENT_LOG,	NULL,	"Persistent Event Log",
diff --git a/sys/dev/nvme/nvme.h b/sys/dev/nvme/nvme.h
index 05c0a7335bc0..f2ef2467c9b1 100644
--- a/sys/dev/nvme/nvme.h
+++ b/sys/dev/nvme/nvme.h
@@ -1313,7 +1313,7 @@ enum nvme_log_page {
 	NVME_LOG_ENDURANCE_GROUP_INFORMATION = 0x09,
 	NVME_LOG_PREDICTABLE_LATENCY_PER_NVM_SET = 0x0a,
 	NVME_LOG_PREDICTABLE_LATENCY_EVENT_AGGREGATE = 0x0b,
-	NVME_LOG_ASYMMETRIC_NAMESPAVE_ACCESS = 0x0c,
+	NVME_LOG_ASYMMETRIC_NAMESPACE_ACCESS = 0x0c,
 	NVME_LOG_PERSISTENT_EVENT_LOG	= 0x0d,
 	NVME_LOG_LBA_STATUS_INFORMATION	= 0x0e,
 	NVME_LOG_ENDURANCE_GROUP_EVENT_AGGREGATE = 0x0f,
diff --git a/usr.sbin/bhyve/pci_nvme.c b/usr.sbin/bhyve/pci_nvme.c
index 291d6676f7ce..8cb76303da94 100644
--- a/usr.sbin/bhyve/pci_nvme.c
+++ b/usr.sbin/bhyve/pci_nvme.c
@@ -964,7 +964,7 @@ pci_nvme_aen_process(struct pci_nvme_softc *sc)
 				lid = NVME_LOG_TELEMETRY_CONTROLLER_INITIATED;
 				break;
 			case PCI_NVME_AE_INFO_ANA_CHANGE:
-				lid = NVME_LOG_ASYMMETRIC_NAMESPAVE_ACCESS; //TODO spelling
+				lid = NVME_LOG_ASYMMETRIC_NAMESPACE_ACCESS;
 				break;
 			case PCI_NVME_AE_INFO_PREDICT_LATENCY_CHANGE:
 				lid = NVME_LOG_PREDICTABLE_LATENCY_EVENT_AGGREGATE;