From patchwork Mon Jan 31 09:50:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Wilson X-Patchwork-Id: 518701 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0V9op7O024468 for ; Mon, 31 Jan 2011 09:51:12 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9206C9E9C2 for ; Mon, 31 Jan 2011 01:50:50 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 65FC99E78E for ; Mon, 31 Jan 2011 01:50:32 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 31 Jan 2011 01:50:32 -0800 Message-Id: <0d30dc$ktp5h7@orsmga001.jf.intel.com> X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.60,403,1291622400"; d="scan'208";a="702322215" Received: from unknown (HELO cwilso3-mobl.ger.corp.intel.com) ([10.255.16.176]) by orsmga001.jf.intel.com with SMTP; 31 Jan 2011 01:50:30 -0800 Received: by cwilso3-mobl.ger.corp.intel.com (sSMTP sendmail emulation); Mon, 31 Jan 2011 09:50:29 +0000 Date: Mon, 31 Jan 2011 09:50:29 +0000 To: Cyril Brulebois , intel-gfx@lists.freedesktop.org References: <1296451359-28449-1-git-send-email-kibi@debian.org> <1296451359-28449-3-git-send-email-kibi@debian.org> From: Chris Wilson In-Reply-To: <1296451359-28449-3-git-send-email-kibi@debian.org> Subject: Re: [Intel-gfx] [PATCH 3/5] xvmc: Silence gcc, add parentheses around arithmetic. X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 31 Jan 2011 09:51:32 +0000 (UTC) diff --git a/src/xvmc/intel_batchbuffer.h b/src/xvmc/intel_batchbuffer.h index 6fa1c05..888abeb 100644 --- a/src/xvmc/intel_batchbuffer.h +++ b/src/xvmc/intel_batchbuffer.h @@ -24,7 +24,7 @@ extern int VERBOSE; #define OUT_RELOC(bo,read_domains,write_domains,delta) \ do { \ - *(unsigned int *)batch_ptr = delta + bo->offset; \ + *(unsigned int *)batch_ptr = (delta) + bo->offset; \ intel_batch_emit_reloc(bo, read_domains, write_domains, delta, batch_pt batch_ptr += 4; \ } while (0)