Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Revert previous, mark cfdriver_iattr_count as __dia...



details:   https://anonhg.NetBSD.org/src/rev/9bfb40e607f9
branches:  trunk
changeset: 359987:9bfb40e607f9
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Feb 06 11:56:00 2022 +0000

description:
Revert previous, mark cfdriver_iattr_count as __diagused instead.

diffstat:

 sys/kern/subr_autoconf.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r a5d0e518ed79 -r 9bfb40e607f9 sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c  Sun Feb 06 10:05:56 2022 +0000
+++ b/sys/kern/subr_autoconf.c  Sun Feb 06 11:56:00 2022 +0000
@@ -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 @@
        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 @@
        }
        return i;
 }
-#endif
 
 /*
  * Lookup an interface attribute description by name.



Home | Main Index | Thread Index | Old Index