From owner-svn-src-head@FreeBSD.ORG Tue Sep 13 15:49:28 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6735A106564A; Tue, 13 Sep 2011 15:49:28 +0000 (UTC) (envelope-from davidch@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5782A8FC1B; Tue, 13 Sep 2011 15:49:28 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8DFnSbf086670; Tue, 13 Sep 2011 15:49:28 GMT (envelope-from davidch@svn.freebsd.org) Received: (from davidch@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8DFnS6j086668; Tue, 13 Sep 2011 15:49:28 GMT (envelope-from davidch@svn.freebsd.org) Message-Id: <201109131549.p8DFnS6j086668@svn.freebsd.org> From: David Christensen Date: Tue, 13 Sep 2011 15:49:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225532 - head/sys/dev/bxe X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2011 15:49:28 -0000 Author: davidch Date: Tue Sep 13 15:49:28 2011 New Revision: 225532 URL: http://svn.freebsd.org/changeset/base/225532 Log: - Fix compiler warning in ADD_64() macro. Approved by: re Obtained from: dimitry@andic.com MFC after: One week Modified: head/sys/dev/bxe/if_bxe.c Modified: head/sys/dev/bxe/if_bxe.c ============================================================================== --- head/sys/dev/bxe/if_bxe.c Tue Sep 13 14:07:05 2011 (r225531) +++ head/sys/dev/bxe/if_bxe.c Tue Sep 13 15:49:28 2011 (r225532) @@ -7188,7 +7188,7 @@ bxe_attn_int(struct bxe_softc* sc) /* sum[hi:lo] += add[hi:lo] */ #define ADD_64(s_hi, a_hi, s_lo, a_lo) do { \ s_lo += a_lo; \ - s_hi += a_hi + (s_lo < a_lo) ? 1 : 0; \ + s_hi += a_hi + ((s_lo < a_lo) ? 1 : 0); \ } while (0) /* Subtraction = minuend -= subtrahend */