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;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to