git: 44fb9f2701c7 - main - sys/efi_map.h: This is a kernel-only file

From: Warner Losh <imp_at_FreeBSD.org>
Date: Mon, 17 Nov 2025 00:18:29 UTC
The branch main has been updated by imp:

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

commit 44fb9f2701c71ce6bba75810fc6b7e735ecd5868
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2025-11-16 23:58:37 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-11-17 00:16:26 +0000

    sys/efi_map.h: This is a kernel-only file
    
    Slap a #ifdef _KERNEL around it all since it's useless to userland.
    
    Fixes:          43b8edb32051
    Sponsored by:   Netflix
---
 sys/sys/efi_map.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sys/sys/efi_map.h b/sys/sys/efi_map.h
index 8b458cd08b00..d2206056b1f8 100644
--- a/sys/sys/efi_map.h
+++ b/sys/sys/efi_map.h
@@ -7,6 +7,8 @@
 #ifndef _SYS_EFI_MAP_H_
 #define _SYS_EFI_MAP_H_
 
+#ifdef _KERNEL
+
 #include <sys/efi.h>
 #include <machine/metadata.h>
 
@@ -21,4 +23,6 @@ void efi_map_add_entries(struct efi_map_header *efihdr);
 void efi_map_exclude_entries(struct efi_map_header *efihdr);
 void efi_map_print_entries(struct efi_map_header *efihdr);
 
+#endif
+
 #endif /* !_SYS_EFI_MAP_H_ */