svn commit: r361262 - head/sys/kern

Mark Johnston markj at FreeBSD.org
Tue May 19 18:34:50 UTC 2020


Author: markj
Date: Tue May 19 18:34:50 2020
New Revision: 361262
URL: https://svnweb.freebsd.org/changeset/base/361262

Log:
  Use the symbolic name for "modmetadata_set".
  
  MFC after:	1 week
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/kern/kern_linker.c

Modified: head/sys/kern/kern_linker.c
==============================================================================
--- head/sys/kern/kern_linker.c	Tue May 19 16:28:20 2020	(r361261)
+++ head/sys/kern/kern_linker.c	Tue May 19 18:34:50 2020	(r361262)
@@ -369,8 +369,7 @@ linker_file_register_modules(linker_file_t lf)
 
 	sx_assert(&kld_sx, SA_XLOCKED);
 
-	if (linker_file_lookup_set(lf, "modmetadata_set", &start,
-	    &stop, NULL) != 0) {
+	if (linker_file_lookup_set(lf, MDT_SETNAME, &start, &stop, NULL) != 0) {
 		/*
 		 * This fallback should be unnecessary, but if we get booted
 		 * from boot2 instead of loader and we are missing our


More information about the svn-src-head mailing list