Module Name: src Committed By: martin Date: Sat Feb 5 15:17:40 UTC 2022
Modified Files: src/sys/kern: subr_autoconf.c Log Message: cfdriver_iattr_count() is only used in a KASSERT, so #ifdef DIAGNOSTIC it. To generate a diff of this commit: cvs rdiff -u -r1.292 -r1.293 src/sys/kern/subr_autoconf.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/subr_autoconf.c diff -u src/sys/kern/subr_autoconf.c:1.292 src/sys/kern/subr_autoconf.c:1.293 --- src/sys/kern/subr_autoconf.c:1.292 Sat Jan 29 20:35:11 2022 +++ src/sys/kern/subr_autoconf.c Sat Feb 5 15:17:40 2022 @@ -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 @@ cfdriver_get_iattr(const struct cfdriver return 0; } +#ifdef DIAGNOSTIC static int cfdriver_iattr_count(const struct cfdriver *cd) { @@ -852,6 +853,7 @@ cfdriver_iattr_count(const struct cfdriv } return i; } +#endif /* * Lookup an interface attribute description by name.