diff options
author | Warner Losh <imp@FreeBSD.org> | 2022-12-05 17:40:15 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2022-12-05 23:59:58 +0000 |
commit | 335615c4cad79765b46048bfa782120fd9cadb95 (patch) | |
tree | edfc120cd600a011aa0b0204ce088f73f55931a4 /stand/uboot | |
parent | 08e5f519b21dfcc7543c41c14d066b2d015fbf5c (diff) | |
download | src-335615c4cad79765b46048bfa782120fd9cadb95.tar.gz src-335615c4cad79765b46048bfa782120fd9cadb95.zip |
stand: update prototypes for md_load and md_load64
These are declared as extern in a number of files (some with the wrong
return type). Centralize this in modinfo.h and remove a few extra stray
declarations as well that are no longer used. No functional change.
Note: I've not tried to cope with the bi_load() functions which are the
same logical thing. These will be handled separately.
Sponsored by: Netflix
Diffstat (limited to 'stand/uboot')
-rw-r--r-- | stand/uboot/arch/powerpc/ppc64_elf_freebsd.c | 5 | ||||
-rw-r--r-- | stand/uboot/elf_freebsd.c | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/stand/uboot/arch/powerpc/ppc64_elf_freebsd.c b/stand/uboot/arch/powerpc/ppc64_elf_freebsd.c index 57b2e791fbba..feabcde3bf4a 100644 --- a/stand/uboot/arch/powerpc/ppc64_elf_freebsd.c +++ b/stand/uboot/arch/powerpc/ppc64_elf_freebsd.c @@ -40,10 +40,7 @@ __FBSDID("$FreeBSD$"); #include "bootstrap.h" #include "libuboot.h" - -vm_offset_t md_load64(char *args, vm_offset_t *modulep, vm_offset_t *dtb); -extern char end[]; -extern vm_offset_t reloc; /* From <arch>/conf.c */ +#include "modinfo.h" int ppc64_uboot_elf_loadfile(char *filename, uint64_t dest, diff --git a/stand/uboot/elf_freebsd.c b/stand/uboot/elf_freebsd.c index 802d6e96dee6..0541edd92c64 100644 --- a/stand/uboot/elf_freebsd.c +++ b/stand/uboot/elf_freebsd.c @@ -39,8 +39,7 @@ __FBSDID("$FreeBSD$"); #include "bootstrap.h" #include "libuboot.h" - -extern vm_offset_t md_load(char *, vm_offset_t *, vm_offset_t *); +#include "modinfo.h" int __elfN(uboot_load)(char *filename, uint64_t dest, |