git: b05b1ecbef00 - main - amd64, arm64 pmap: fix a comment typo

From: Mitchell Horne <mhorne_at_FreeBSD.org>
Date: Thu, 06 Oct 2022 22:05:43 UTC
The branch main has been updated by mhorne:

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

commit b05b1ecbef0093107eef8fed52c58aa9c66cc4e0
Author:     Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2022-10-04 19:22:20 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2022-10-06 22:04:54 +0000

    amd64, arm64 pmap: fix a comment typo
    
    There is no such error code.
    
    Fixes:  1d5ebad06c20b ("pmap: optimize MADV_WILLNEED on existing superpages")
---
 sys/amd64/amd64/pmap.c | 2 +-
 sys/arm64/arm64/pmap.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index b9b031d55d7d..2eedf78413bd 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -7318,7 +7318,7 @@ pmap_every_pte_zero(vm_paddr_t pa)
 /*
  * Tries to create the specified 2MB page mapping.  Returns KERN_SUCCESS if
  * the mapping was created, and one of KERN_FAILURE, KERN_NO_SPACE,
- * KERN_PROTECTION_FAILURE, or KERN_RESOURCE_FAILURE otherwise.  Returns
+ * KERN_PROTECTION_FAILURE, or KERN_RESOURCE_SHORTAGE otherwise.  Returns
  * KERN_FAILURE if either (1) PMAP_ENTER_NOREPLACE was specified and a 4KB
  * page mapping already exists within the 2MB virtual address range starting
  * at the specified virtual address or (2) the requested 2MB page mapping is
diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c
index 1e9ada8c89f7..6152cfbfc83f 100644
--- a/sys/arm64/arm64/pmap.c
+++ b/sys/arm64/arm64/pmap.c
@@ -4471,7 +4471,7 @@ pmap_every_pte_zero(vm_paddr_t pa)
 /*
  * Tries to create the specified 2MB page mapping.  Returns KERN_SUCCESS if
  * the mapping was created, and one of KERN_FAILURE, KERN_NO_SPACE, or
- * KERN_RESOURCE_FAILURE otherwise.  Returns KERN_FAILURE if
+ * KERN_RESOURCE_SHORTAGE otherwise.  Returns KERN_FAILURE if
  * PMAP_ENTER_NOREPLACE was specified and a 4KB page mapping already exists
  * within the 2MB virtual address range starting at the specified virtual
  * address.  Returns KERN_NO_SPACE if PMAP_ENTER_NOREPLACE was specified and a