git: 1d3a7e849b6d - main - kboot: Remove externs
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 03 Feb 2023 15:50:56 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=1d3a7e849b6d115a4b6e34f360d61197b491db11
commit 1d3a7e849b6d115a4b6e34f360d61197b491db11
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-02-03 15:40:56 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-02-03 15:41:41 +0000
kboot: Remove externs
kboot_get_phys_load_segment is defined in kboot.h, so remove them from
the .c files.
Sponsored by: Netflix
Reviewed by: tsoome
Differential Revision: https://reviews.freebsd.org/D38310
---
stand/kboot/arch/aarch64/exec.c | 2 --
stand/kboot/arch/amd64/elf64_freebsd.c | 2 --
2 files changed, 4 deletions(-)
diff --git a/stand/kboot/arch/aarch64/exec.c b/stand/kboot/arch/aarch64/exec.c
index 521e28beb562..22fb48471dc2 100644
--- a/stand/kboot/arch/aarch64/exec.c
+++ b/stand/kboot/arch/aarch64/exec.c
@@ -100,8 +100,6 @@ struct trampoline_data {
};
#endif
-extern vm_offset_t kboot_get_phys_load_segment(void);
-
static int
elf64_exec(struct preloaded_file *fp)
{
diff --git a/stand/kboot/arch/amd64/elf64_freebsd.c b/stand/kboot/arch/amd64/elf64_freebsd.c
index 0d950fb61eb6..c3ed842a2abd 100644
--- a/stand/kboot/arch/amd64/elf64_freebsd.c
+++ b/stand/kboot/arch/amd64/elf64_freebsd.c
@@ -67,8 +67,6 @@ static EFI_GUID acpi20_guid = ACPI_20_TABLE_GUID;
#define LOADER_PAGE_SIZE PAGE_SIZE
#endif
-extern vm_offset_t kboot_get_phys_load_segment(void);
-
extern int bi_load(char *args, vm_offset_t *modulep, vm_offset_t *kernendp,
bool exit_bs);