Since arm/unwind.c s conditionally compiled, only call functions in it

when one of those conditions is true.  Fixes build failure on kernel
configs with no debugging options active.
This commit is contained in:
Ian Lepore 2020-01-02 15:38:17 +00:00
parent 0eeb0d180e
commit e0f07fadf6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=356273

View File

@ -52,6 +52,10 @@ __FBSDID("$FreeBSD$");
#include <machine/vfp.h>
#endif
#include "opt_ddb.h" /* for OPT_DDB */
#include "opt_global.h" /* for OPT_KDTRACE_HOOKS */
#include "opt_stack.h" /* for OPT_STACK */
static boolean_t elf32_arm_abi_supported(struct image_params *);
u_long elf_hwcap;
@ -311,11 +315,13 @@ elf_cpu_load_file(linker_file_t lf)
cpu_icache_sync_range((vm_offset_t)lf->address, (vm_size_t)lf->size);
#endif
#if defined(DDB) || defined(KDTRACE_HOOKS) || defined(STACK)
/*
* Inform the stack(9) code of the new module, so it can acquire its
* per-module unwind data.
*/
unwind_module_loaded(lf);
#endif
return (0);
}