svn commit: r301296 - head/sys/dev/ioat
Conrad E. Meyer
cem at FreeBSD.org
Sat Jun 4 03:52:21 UTC 2016
Author: cem
Date: Sat Jun 4 03:52:19 2016
New Revision: 301296
URL: https://svnweb.freebsd.org/changeset/base/301296
Log:
ioat(4): Make channel indices unsigned
Sponsored by: EMC / Isilon Storage Division
Modified:
head/sys/dev/ioat/ioat.c
head/sys/dev/ioat/ioat_internal.h
Modified: head/sys/dev/ioat/ioat.c
==============================================================================
--- head/sys/dev/ioat/ioat.c Sat Jun 4 01:01:46 2016 (r301295)
+++ head/sys/dev/ioat/ioat.c Sat Jun 4 03:52:19 2016 (r301296)
@@ -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
Modified: head/sys/dev/ioat/ioat_internal.h
==============================================================================
--- head/sys/dev/ioat/ioat_internal.h Sat Jun 4 01:01:46 2016 (r301295)
+++ head/sys/dev/ioat/ioat_internal.h Sat Jun 4 03:52:19 2016 (r301296)
@@ -455,7 +455,7 @@ struct ioat_softc {
})
int version;
- int chan_idx;
+ unsigned chan_idx;
struct mtx submit_lock;
device_t device;
More information about the svn-src-head
mailing list