Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jun 2025 14:53:36 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 7aac4b22f9be - main - efi: Include sys/types.h for register_t
Message-ID:  <202506041453.554EralY091359@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by imp:

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

commit 7aac4b22f9bed604a819419e19f0322a31d41397
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2025-06-04 14:51:37 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-06-04 14:53:07 +0000

    efi: Include sys/types.h for register_t
    
    This file depends on sys/types.h being included before it, which isn't
    the best assumption. Include it here since we have no namespace
    pollution concerns.
    
    Sponsored by:           Netflix
---
 sys/amd64/include/efi.h | 2 ++
 sys/arm64/include/efi.h | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/sys/amd64/include/efi.h b/sys/amd64/include/efi.h
index 5932bbaeeec5..b47c4aa27ac7 100644
--- a/sys/amd64/include/efi.h
+++ b/sys/amd64/include/efi.h
@@ -29,6 +29,8 @@
 #ifndef __AMD64_INCLUDE_EFI_H_
 #define __AMD64_INCLUDE_EFI_H_
 
+#include <sys/types.h>
+
 /*
  * XXX: from gcc 6.2 manual:
  * Note, the ms_abi attribute for Microsoft Windows 64-bit targets
diff --git a/sys/arm64/include/efi.h b/sys/arm64/include/efi.h
index d5cb44f740b0..bfce872296a2 100644
--- a/sys/arm64/include/efi.h
+++ b/sys/arm64/include/efi.h
@@ -35,6 +35,8 @@
 #ifndef __ARM64_INCLUDE_EFI_H_
 #define __ARM64_INCLUDE_EFI_H_
 
+#include <sys/types.h>
+
 #define	EFIABI_ATTR
 
 #ifdef _KERNEL


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202506041453.554EralY091359>