Module Name: src Committed By: christos Date: Tue Apr 18 18:07:30 UTC 2017
Modified Files: src/sys/kern: kern_module.c Log Message: PR/52174: Remove root test, it is too verbose. XXX: need to come up with something better. To generate a diff of this commit: cvs rdiff -u -r1.123 -r1.124 src/sys/kern/kern_module.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/kern_module.c diff -u src/sys/kern/kern_module.c:1.123 src/sys/kern/kern_module.c:1.124 --- src/sys/kern/kern_module.c:1.123 Tue Apr 11 17:15:57 2017 +++ src/sys/kern/kern_module.c Tue Apr 18 14:07:29 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_module.c,v 1.123 2017/04/11 21:15:57 christos Exp $ */ +/* $NetBSD: kern_module.c,v 1.124 2017/04/18 18:07:29 christos Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.123 2017/04/11 21:15:57 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.124 2017/04/18 18:07:29 christos Exp $"); #define _MODULE_INTERNAL @@ -54,7 +54,6 @@ __KERNEL_RCSID(0, "$NetBSD: kern_module. #include <sys/kthread.h> #include <sys/sysctl.h> #include <sys/lock.h> -#include <sys/vnode.h> #include <uvm/uvm_extern.h> @@ -609,14 +608,6 @@ module_autoload(const char *filename, mo { int error; - if (rootvp == NULL) { -#ifdef DIAGNOSTIC - printf("%s: trying to load `%s' before root is mounted\n", - __func__, filename); -#endif - return EPERM; - } - kernconfig_lock(); /* Nothing if the user has disabled it. */