summaryrefslogtreecommitdiffstats
path: root/sys/sun4v
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2010-09-10 11:19:03 +0000
committeravg <avg@FreeBSD.org>2010-09-10 11:19:03 +0000
commitc9fe8ad7f06a5eb11bd5ba5224721d64a9b81afd (patch)
treedf34a15378a2bfdd3403ef89e431e6f0c53c379c /sys/sun4v
parentcab433458afbc7e2f04ab7edaf6866c0d70724ea (diff)
downloadFreeBSD-src-c9fe8ad7f06a5eb11bd5ba5224721d64a9b81afd.zip
FreeBSD-src-c9fe8ad7f06a5eb11bd5ba5224721d64a9b81afd.tar.gz
bus_add_child: change type of order parameter to u_int
This reflects actual type used to store and compare child device orders. Change is mostly done via a Coccinelle (soon to be devel/coccinelle) semantic patch. Verified by LINT+modules kernel builds. Followup to: r212213 MFC after: 10 days
Diffstat (limited to 'sys/sun4v')
-rw-r--r--sys/sun4v/sun4v/nexus.c2
-rw-r--r--sys/sun4v/sun4v/vnex.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/sun4v/sun4v/nexus.c b/sys/sun4v/sun4v/nexus.c
index 2156a23..125b2f7 100644
--- a/sys/sun4v/sun4v/nexus.c
+++ b/sys/sun4v/sun4v/nexus.c
@@ -234,7 +234,7 @@ nexus_attach(device_t dev)
}
static device_t
-nexus_add_child(device_t dev, int order, const char *name, int unit)
+nexus_add_child(device_t dev, u_int order, const char *name, int unit)
{
device_t cdev;
struct nexus_devinfo *ndi;
diff --git a/sys/sun4v/sun4v/vnex.c b/sys/sun4v/sun4v/vnex.c
index 305d0bb..d2554eb 100644
--- a/sys/sun4v/sun4v/vnex.c
+++ b/sys/sun4v/sun4v/vnex.c
@@ -204,7 +204,7 @@ vnex_attach(device_t dev)
}
static device_t
-vnex_add_child(device_t dev, int order, const char *name, int unit)
+vnex_add_child(device_t dev, u_int order, const char *name, int unit)
{
device_t cdev;
struct vnex_devinfo *vndi;
OpenPOWER on IntegriCloud