git: 83eabc64efec - main - kboot: Add HOST_MAP_FAILED define

From: Warner Losh <imp_at_FreeBSD.org>
Date: Mon, 01 May 2023 21:28:46 UTC
The branch main has been updated by imp:

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

commit 83eabc64efec4aaf46f87bf2ba5560ecd4c336d7
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-05-01 21:11:32 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-05-01 21:11:32 +0000

    kboot: Add HOST_MAP_FAILED define
    
    Sponsored by:           Netflix
    Differential Revision:  https://reviews.freebsd.org/D39790
---
 stand/kboot/host_syscall.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/stand/kboot/host_syscall.h b/stand/kboot/host_syscall.h
index 64288f48e6f0..c85284d03be7 100644
--- a/stand/kboot/host_syscall.h
+++ b/stand/kboot/host_syscall.h
@@ -123,6 +123,8 @@ struct host_timeval {
 #define HOST_MAP_FIXED		0x10
 #define HOST_MAP_ANONYMOUS	0x20
 
+#define HOST_MAP_FAILED		((void *)-1)
+
 /* Mount flags from uapi */
 #define MS_RELATIME (1 << 21)