diff options
author | cem <cem@FreeBSD.org> | 2016-06-04 03:52:19 +0000 |
---|---|---|
committer | cem <cem@FreeBSD.org> | 2016-06-04 03:52:19 +0000 |
commit | 44e09495f3733d9a1a4d828d8b48c59439c84fb0 (patch) | |
tree | 5dfba971e919d65aefd3c96a4141d615fb916c15 | |
parent | ee7dbd3e0c8253a6d8b4a8d287518fd7059c3bc6 (diff) | |
download | FreeBSD-src-44e09495f3733d9a1a4d828d8b48c59439c84fb0.zip FreeBSD-src-44e09495f3733d9a1a4d828d8b48c59439c84fb0.tar.gz |
ioat(4): Make channel indices unsigned
Sponsored by: EMC / Isilon Storage Division
-rw-r--r-- | sys/dev/ioat/ioat.c | 4 | ||||
-rw-r--r-- | sys/dev/ioat/ioat_internal.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ioat/ioat.c b/sys/dev/ioat/ioat.c index bda0454..3724fbe 100644 --- a/sys/dev/ioat/ioat.c +++ b/sys/dev/ioat/ioat.c @@ -152,8 +152,8 @@ MODULE_VERSION(ioat, 1); * Private data structures */ static struct ioat_softc *ioat_channel[IOAT_MAX_CHANNELS]; -static int ioat_channel_index = 0; -SYSCTL_INT(_hw_ioat, OID_AUTO, channels, CTLFLAG_RD, &ioat_channel_index, 0, +static unsigned ioat_channel_index = 0; +SYSCTL_UINT(_hw_ioat, OID_AUTO, channels, CTLFLAG_RD, &ioat_channel_index, 0, "Number of IOAT channels attached"); static struct _pcsid diff --git a/sys/dev/ioat/ioat_internal.h b/sys/dev/ioat/ioat_internal.h index 322671c..9d0708d 100644 --- a/sys/dev/ioat/ioat_internal.h +++ b/sys/dev/ioat/ioat_internal.h @@ -455,7 +455,7 @@ struct ioat_softc { }) int version; - int chan_idx; + unsigned chan_idx; struct mtx submit_lock; device_t device; |