Tue Sep 29 22:40:15 2009 UTC ()
#include "drvctl.h" for the NDRVCTL definition.  Without the NDRVCTL
definition, drvctl_init() is not called, the drvctl_eventq is not
initialized, and the kernel will panic in devmon_insert() when a
device is detached.

Thanks to Jared McNeill for pointing out the panic.


(dyoung)
diff -r1.401 -r1.402 src/sys/kern/init_main.c

cvs diff -r1.401 -r1.402 src/sys/kern/init_main.c (expand / switch to context diff)
--- src/sys/kern/init_main.c 2009/09/21 12:14:46 1.401
+++ src/sys/kern/init_main.c 2009/09/29 22:40:15 1.402
@@ -1,4 +1,4 @@
-/*	$NetBSD: init_main.c,v 1.401 2009/09/21 12:14:46 pooka Exp $	*/
+/*	$NetBSD: init_main.c,v 1.402 2009/09/29 22:40:15 dyoung Exp $	*/
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.401 2009/09/21 12:14:46 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.402 2009/09/29 22:40:15 dyoung Exp $");
 
 #include "opt_ddb.h"
 #include "opt_ipsec.h"
@@ -113,6 +113,7 @@
 #include "opt_compat_netbsd.h"
 #include "opt_wapbl.h"
 
+#include "drvctl.h"
 #include "ksyms.h"
 #include "rnd.h"
 #include "sysmon_envsys.h"