git: 211053f952d8 - main - arm64: Remove unused typedef
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 24 Aug 2022 12:37:54 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=211053f952d8ac91dab239f6c4845dd5badd0d95
commit 211053f952d8ac91dab239f6c4845dd5badd0d95
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-08-24 12:27:01 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-08-24 12:35:41 +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
---
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 58136981c1a4..5ce5d279e8e0 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