Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern #include "drvctl.h" for the NDRVCTL definition. Wi...
details: https://anonhg.NetBSD.org/src/rev/aa0e923f4fc8
branches: trunk
changeset: 747730:aa0e923f4fc8
user: dyoung <dyoung%NetBSD.org@localhost>
date: Tue Sep 29 22:40:15 2009 +0000
description:
#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.
diffstat:
sys/kern/init_main.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 56087be1a25b -r aa0e923f4fc8 sys/kern/init_main.c
--- a/sys/kern/init_main.c Tue Sep 29 22:14:03 2009 +0000
+++ b/sys/kern/init_main.c Tue Sep 29 22:40:15 2009 +0000
@@ -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"
Home |
Main Index |
Thread Index |
Old Index