Author: imp
Date: Thu Aug  7 21:56:46 2014
New Revision: 269693
URL: http://svnweb.freebsd.org/changeset/base/269693

Log:
  Cast queue length because q_len isn't really an enum in the same sense
  that clang wants it to be (a value that can only have values inside
  the enum range), but rather an unsigned count of bytes.

Modified:
  head/sys/dev/oce/oce_mbox.c

Modified: head/sys/dev/oce/oce_mbox.c
==============================================================================
--- head/sys/dev/oce/oce_mbox.c Thu Aug  7 21:56:42 2014        (r269692)
+++ head/sys/dev/oce/oce_mbox.c Thu Aug  7 21:56:46 2014        (r269693)
@@ -1876,7 +1876,7 @@ oce_mbox_cq_create(struct oce_cq *cq, ui
                ctx->v2.armed = 0;
                ctx->v2.eq_id = cq->eq->eq_id;
                if (ctx->v2.count == 3) {
-                       if (cq->cq_cfg.q_len > (4*1024)-1)
+                       if ((u_int)cq->cq_cfg.q_len > (4*1024)-1)
                                ctx->v2.cqe_count = (4*1024)-1;
                        else
                                ctx->v2.cqe_count = cq->cq_cfg.q_len;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to