Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Mar 2025 21:38:27 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 498b0abe55ea - main - sys/efi_map.h: Forward declare struct efi_map_header
Message-ID:  <202503032138.523LcRUr007819@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

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

commit 498b0abe55eaace4615ca5cfba1fe6cc6129a3dd
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2025-03-03 21:37:00 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2025-03-03 21:38:13 +0000

    sys/efi_map.h: Forward declare struct efi_map_header
    
    This fixes build failures in the test-includes stage of buildworld on
    powerpc which does not define a struct efi_map_header type in its
    <machine/metadata.h> header.
    
    Fixes:          125877c92d16 ("arm64: Split EFI map parsing code to a common file")
---
 sys/sys/efi_map.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/sys/efi_map.h b/sys/sys/efi_map.h
index 4edabd4e5812..8b458cd08b00 100644
--- a/sys/sys/efi_map.h
+++ b/sys/sys/efi_map.h
@@ -10,6 +10,8 @@
 #include <sys/efi.h>
 #include <machine/metadata.h>
 
+struct efi_map_header;
+
 typedef void (*efi_map_entry_cb)(struct efi_md *, void *argp);
 
 void efi_map_foreach_entry(struct efi_map_header *efihdr, efi_map_entry_cb cb,



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