Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern cfdriver_iattr_count() is only used in a KASSERT, s...
details: https://anonhg.NetBSD.org/src/rev/4636f57e153f
branches: trunk
changeset: 359981:4636f57e153f
user: martin <martin%NetBSD.org@localhost>
date: Sat Feb 05 15:17:40 2022 +0000
description:
cfdriver_iattr_count() is only used in a KASSERT, so #ifdef DIAGNOSTIC it.
diffstat:
sys/kern/subr_autoconf.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 5d9a38838d07 -r 4636f57e153f sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c Sat Feb 05 14:11:52 2022 +0000
+++ b/sys/kern/subr_autoconf.c Sat Feb 05 15:17:40 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.292 2022/01/29 20:35:11 riastradh Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.293 2022/02/05 15:17:40 martin Exp $ */
/*
* Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.292 2022/01/29 20:35:11 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.293 2022/02/05 15:17:40 martin Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -838,6 +838,7 @@
return 0;
}
+#ifdef DIAGNOSTIC
static int
cfdriver_iattr_count(const struct cfdriver *cd)
{
@@ -852,6 +853,7 @@
}
return i;
}
+#endif
/*
* Lookup an interface attribute description by name.
Home |
Main Index |
Thread Index |
Old Index