Module Name: src
Committed By: thorpej
Date: Mon Mar 22 17:21:09 UTC 2021
Modified Files:
src/sys/kern [thorpej-cfargs]: subr_autoconf.c
src/sys/sys [thorpej-cfargs]: device.h
Log Message:
Temporarily continue to provide config_found_ia().
To generate a diff of this commit:
cvs rdiff -u -r1.277.2.4 -r1.277.2.5 src/sys/kern/subr_autoconf.c
cvs rdiff -u -r1.167.2.2 -r1.167.2.3 src/sys/sys/device.h
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.277.2.4 src/sys/kern/subr_autoconf.c:1.277.2.5
--- src/sys/kern/subr_autoconf.c:1.277.2.4 Mon Mar 22 02:01:02 2021
+++ src/sys/kern/subr_autoconf.c Mon Mar 22 17:21:09 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.277.2.4 2021/03/22 02:01:02 thorpej Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.277.2.5 2021/03/22 17:21:09 thorpej 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.277.2.4 2021/03/22 02:01:02 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.277.2.5 2021/03/22 17:21:09 thorpej Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -1219,15 +1219,16 @@ config_vfound(device_t parent, void *aux
return NULL;
}
-#if 0
+/* XXX GC */
device_t
config_found_ia(device_t parent, const char *ifattr, void *aux,
cfprint_t print)
{
- return config_found_sm_loc(parent, ifattr, NULL, aux, print, NULL);
+ return config_found(parent, aux, print,
+ CFARG_IATTR, ifattr,
+ CFARG_EOL);
}
-#endif
device_t
config_found(device_t parent, void *aux, cfprint_t print, cfarg_t tag, ...)
Index: src/sys/sys/device.h
diff -u src/sys/sys/device.h:1.167.2.2 src/sys/sys/device.h:1.167.2.3
--- src/sys/sys/device.h:1.167.2.2 Sun Mar 21 21:09:16 2021
+++ src/sys/sys/device.h Mon Mar 22 17:21:09 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: device.h,v 1.167.2.2 2021/03/21 21:09:16 thorpej Exp $ */
+/* $NetBSD: device.h,v 1.167.2.3 2021/03/22 17:21:09 thorpej Exp $ */
/*
* Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -582,6 +582,7 @@ int config_stdsubmatch(device_t, cfdata_
cfdata_t config_search(device_t, void *, cfarg_t, ...);
cfdata_t config_rootsearch(cfsubmatch_t, const char *, void *);
device_t config_found(device_t, void *, cfprint_t, cfarg_t, ...);
+device_t config_found_ia(device_t, const char *, void *, cfprint_t); /* XXX */
device_t config_rootfound(const char *, void *);
device_t config_attach_loc(device_t, cfdata_t, const int *, void *, cfprint_t);
device_t config_attach(device_t, cfdata_t, void *, cfprint_t);