Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Mar 2023 13:13:55 GMT
From:      Mitchell Horne <mhorne@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 8f18fd168d04 - stable/13 - arm64: Remove unused typedef
Message-ID:  <202303241313.32ODDtBE031155@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by mhorne:

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

commit 8f18fd168d04b2c0f18e5337a4a65e923a98c8a1
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-08-24 12:27:01 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2023-03-24 13:12:39 +0000

    arm64: Remove unused typedef
    
    We don't use EFI_MEMORY_DESCRIPTOR that's typedef'd here. We use the one
    from sys/efi.h instead. Remove the clutter here as these two are subtly
    different (though wind up with the same layout due to alignment rules).
    
    Sponsored by:           Netflix
    
    (cherry picked from commit 211053f952d8ac91dab239f6c4845dd5badd0d95)
---
 sys/arm64/arm64/machdep.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/sys/arm64/arm64/machdep.c b/sys/arm64/arm64/machdep.c
index 6178221032eb..768d02b510b2 100644
--- a/sys/arm64/arm64/machdep.c
+++ b/sys/arm64/arm64/machdep.c
@@ -420,14 +420,6 @@ arm64_get_writable_addr(vm_offset_t addr, vm_offset_t *out)
 	return (false);
 }
 
-typedef struct {
-	uint32_t type;
-	uint64_t phys_start;
-	uint64_t virt_start;
-	uint64_t num_pages;
-	uint64_t attr;
-} EFI_MEMORY_DESCRIPTOR;
-
 typedef void (*efi_map_entry_cb)(struct efi_md *);
 
 static void



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