Module Name: src Committed By: christos Date: Sat Mar 7 23:20:19 UTC 2015
Modified Files: src/sys/kern: kern_module.c Log Message: Fix compilation. To generate a diff of this commit: cvs rdiff -u -r1.103 -r1.104 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.103 src/sys/kern/kern_module.c:1.104 --- src/sys/kern/kern_module.c:1.103 Sat Feb 28 18:04:34 2015 +++ src/sys/kern/kern_module.c Sat Mar 7 18:20:19 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_module.c,v 1.103 2015/02/28 23:04:34 jmcneill Exp $ */ +/* $NetBSD: kern_module.c,v 1.104 2015/03/07 23:20:19 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.103 2015/02/28 23:04:34 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.104 2015/03/07 23:20:19 christos Exp $"); #define _MODULE_INTERNAL @@ -966,8 +966,8 @@ module_do_load(const char *name, bool is * available for each architecture, so we don't * print an error if they are missing. */ - if ((modclass != MODULE_CLASS_EXEC || error != ENOENT) && - root_device != NULL) + if ((modclass != MODULE_CLASS_EXEC || error != ENOENT) + && root_device != NODEV) module_error("vfs load failed for `%s', " "error %d", name, error); #endif