From owner-svn-src-all@FreeBSD.ORG Thu Aug 7 21:56:47 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4F7C9CAB for ; Thu, 7 Aug 2014 21:56:47 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 233612C95 for ; Thu, 7 Aug 2014 21:56:47 +0000 (UTC) Received: from imp (uid 547) (envelope-from imp@FreeBSD.org) id 294f by svn.freebsd.org (DragonFly Mail Agent v0.9+); Thu, 07 Aug 2014 21:56:47 +0000 From: Warner Losh Date: Thu, 7 Aug 2014 21:56:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r269693 - head/sys/dev/oce X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <53e3f61f.294f.783dc2e4@svn.freebsd.org> X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2014 21:56:47 -0000 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;