diff options
| author | martin <martin@NetBSD.org> | 2022-02-06 11:56:00 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2022-02-06 11:56:00 +0000 |
| commit | fbffc61fab7b3c384bcd14092fbe29f7cb7f6ff4 (patch) | |
| tree | 1a8cb38182aec9871fcb4892ed8b90f699a9d860 /sys | |
| parent | 65fe80adb6026e10b804aef29afeb16015519335 (diff) | |
Revert previous, mark cfdriver_iattr_count as __diagused instead.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/subr_autoconf.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c index 9b79271603c..e61acb6ba59 100644 --- a/sys/kern/subr_autoconf.c +++ b/sys/kern/subr_autoconf.c @@ -1,4 +1,4 @@ -/* $NetBSD: subr_autoconf.c,v 1.293 2022/02/05 15:17:40 martin Exp $ */ +/* $NetBSD: subr_autoconf.c,v 1.294 2022/02/06 11:56:00 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.293 2022/02/05 15:17:40 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.294 2022/02/06 11:56:00 martin Exp $"); #ifdef _KERNEL_OPT #include "opt_ddb.h" @@ -838,9 +838,8 @@ cfdriver_get_iattr(const struct cfdriver *cd, const char *ia) return 0; } -#ifdef DIAGNOSTIC static int -cfdriver_iattr_count(const struct cfdriver *cd) +cfdriver_iattr_count(const struct cfdriver *cd) __diagused { const struct cfiattrdata * const *cpp; int i; @@ -853,7 +852,6 @@ cfdriver_iattr_count(const struct cfdriver *cd) } return i; } -#endif /* * Lookup an interface attribute description by name. |
