git: ef747607ead4 - main - vm_fault: move FAULT_* return codes out of range for Mach errors

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Tue, 27 Jun 2023 21:03:48 UTC
The branch main has been updated by kib:

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

commit ef747607ead43552cb3ebb093fadd2c39c56a36d
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-06-27 11:41:14 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-06-27 21:03:14 +0000

    vm_fault: move FAULT_* return codes out of range for Mach errors
    
    This way a possible clash between FAULT_* and KERN_* numbering is
    avoided, and panics checks for fault_status confusion become more
    efficient.
    
    Reviewed by:    markj
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D40771
---
 sys/vm/vm_fault.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index 1f9063a5988a..8b4b8ebb7375 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -161,7 +161,7 @@ struct faultstate {
  * Return codes for internal fault routines.
  */
 enum fault_status {
-	FAULT_SUCCESS = 1,	/* Return success to user. */
+	FAULT_SUCCESS = 10000,	/* Return success to user. */
 	FAULT_FAILURE,		/* Return failure to user. */
 	FAULT_CONTINUE,		/* Continue faulting. */
 	FAULT_RESTART,		/* Restart fault. */