Author: jhibbits
Date: Sun Mar 17 04:33:17 2019
New Revision: 345239
URL: https://svnweb.freebsd.org/changeset/base/345239

Log:
  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@

Modified:
  head/sys/dev/fdt/fdt_slicer.c

Modified: head/sys/dev/fdt/fdt_slicer.c
==============================================================================
--- head/sys/dev/fdt/fdt_slicer.c       Sat Mar 16 20:02:57 2019        
(r345238)
+++ head/sys/dev/fdt/fdt_slicer.c       Sun Mar 17 04:33:17 2019        
(r345239)
@@ -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);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to