From 1d3a7e849b6d115a4b6e34f360d61197b491db11 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 3 Feb 2023 08:40:56 -0700 Subject: [PATCH] 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);