Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern we don't need ioconf.h if we don't have the ksyms p...
details: https://anonhg.NetBSD.org/src/rev/f1b3fa12977e
branches: trunk
changeset: 810197:f1b3fa12977e
user: christos <christos%NetBSD.org@localhost>
date: Fri Aug 21 06:55:25 2015 +0000
description:
we don't need ioconf.h if we don't have the ksyms pseudo-device
diffstat:
sys/kern/kern_ksyms.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r 5dc974be9654 -r f1b3fa12977e sys/kern/kern_ksyms.c
--- a/sys/kern/kern_ksyms.c Fri Aug 21 06:50:56 2015 +0000
+++ b/sys/kern/kern_ksyms.c Fri Aug 21 06:55:25 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_ksyms.c,v 1.78 2015/08/21 06:50:56 christos Exp $ */
+/* $NetBSD: kern_ksyms.c,v 1.79 2015/08/21 06:55:25 christos Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_ksyms.c,v 1.78 2015/08/21 06:50:56 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_ksyms.c,v 1.79 2015/08/21 06:55:25 christos Exp $");
#if defined(_KERNEL) && defined(_KERNEL_OPT)
#include "opt_ddb.h"
@@ -95,7 +95,9 @@
#endif
#include "ksyms.h"
+#if NKSYMS > 0
#include "ioconf.h"
+#endif
#define KSYMS_MAX_ID 65536
#ifdef KDTRACE_HOOKS
@@ -209,7 +211,7 @@
/*
* The "attach" is in reality done in ksyms_init().
*/
-#if NKSYMS >= 1
+#if NKSYMS > 0
/*
* ksyms can be loaded even if the kernel has a missing "pseudo-device ksyms"
* statement because ddb and modules require it. Fixing it properly requires
Home |
Main Index |
Thread Index |
Old Index