efi loader: Move 'module' variable under #ifdef MODINFOMD_MODULEP.
This quiets a set but unused warning on platforms without this module info such as aarch64. Differential Revision: https://reviews.freebsd.org/D40672
This commit is contained in:
parent
eca9714e4b
commit
b9f56cabed
@ -334,7 +334,10 @@ bi_load(char *args, vm_offset_t *modulep, vm_offset_t *kernendp, bool exit_bs)
|
||||
struct devdesc *rootdev;
|
||||
struct file_metadata *md;
|
||||
vm_offset_t addr;
|
||||
uint64_t kernend, module;
|
||||
uint64_t kernend;
|
||||
#ifdef MODINFOMD_MODULEP
|
||||
uint64_t module;
|
||||
#endif
|
||||
uint64_t envp;
|
||||
vm_offset_t size;
|
||||
char *rootdevname;
|
||||
@ -415,7 +418,7 @@ bi_load(char *args, vm_offset_t *modulep, vm_offset_t *kernendp, bool exit_bs)
|
||||
kernend = 0; /* fill it in later */
|
||||
|
||||
/* Figure out the size and location of the metadata. */
|
||||
module = *modulep = addr;
|
||||
*modulep = addr;
|
||||
|
||||
file_addmetadata(kfp, MODINFOMD_HOWTO, sizeof(howto), &howto);
|
||||
file_addmetadata(kfp, MODINFOMD_ENVP, sizeof(envp), &envp);
|
||||
@ -428,6 +431,7 @@ bi_load(char *args, vm_offset_t *modulep, vm_offset_t *kernendp, bool exit_bs)
|
||||
#endif
|
||||
file_addmetadata(kfp, MODINFOMD_KERNEND, sizeof(kernend), &kernend);
|
||||
#ifdef MODINFOMD_MODULEP
|
||||
module = *modulep;
|
||||
file_addmetadata(kfp, MODINFOMD_MODULEP, sizeof(module), &module);
|
||||
#endif
|
||||
#ifdef EFI
|
||||
|
Loading…
Reference in New Issue
Block a user