From e5657ef4cf957a7907f6e9a892733897d8fc7b07 Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Sun, 17 Mar 2019 04:33:17 +0000 Subject: [PATCH] fdt: Explicitly mark fdt_slicer as dependent on geom_flashmap Without this dependency relationship, the linker doesn't find the flash_register_slicer() function, so kldload fails to load fdt_slicer.ko. Discussed with: ian@ --- sys/dev/fdt/fdt_slicer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/fdt/fdt_slicer.c b/sys/dev/fdt/fdt_slicer.c index ebbfa45e2ec..9442aebdb6e 100644 --- a/sys/dev/fdt/fdt_slicer.c +++ b/sys/dev/fdt/fdt_slicer.c @@ -182,4 +182,5 @@ static moduledata_t fdt_slicer_mod = { }; DECLARE_MODULE(fdt_slicer, fdt_slicer_mod, SI_SUB_DRIVERS, SI_ORDER_SECOND); +MODULE_DEPEND(fdt_slicer, g_flashmap, 0, 0, 0); MODULE_VERSION(fdt_slicer, 1);