Date: Sat, 4 Jun 2016 03:52:20 +0000 (UTC) From: "Conrad E. Meyer" <cem@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r301296 - head/sys/dev/ioat Message-ID: <201606040352.u543qKjx051503@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606040352.u543qKjx051503>