From patchwork Mon Jan 31 09:55:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Cristau X-Patchwork-Id: 518711 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 p0V9tb38027931 for ; Mon, 31 Jan 2011 09:55:57 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DE6839E824 for ; Mon, 31 Jan 2011 01:55:36 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from coloquinte.cristau.org (coloquinte.cristau.org [91.121.16.100]) by gabe.freedesktop.org (Postfix) with ESMTP id 325DE9E732 for ; Mon, 31 Jan 2011 01:55:17 -0800 (PST) Received: from radis.liafa.jussieu.fr (pha75-5-82-225-74-107.fbx.proxad.net [82.225.74.107]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by coloquinte.cristau.org (Postfix) with ESMTPSA id 87EF0BA6E; Mon, 31 Jan 2011 10:55:15 +0100 (CET) Received: from julien by radis.liafa.jussieu.fr with local (Exim 4.72) (envelope-from ) id 1PjqTZ-0004RO-W7; Mon, 31 Jan 2011 10:55:14 +0100 Date: Mon, 31 Jan 2011 10:55:13 +0100 From: Julien Cristau To: Cyril Brulebois Message-ID: <20110131095513.GL10244@radis.liafa.jussieu.fr> References: <1296451359-28449-1-git-send-email-kibi@debian.org> <1296451359-28449-3-git-send-email-kibi@debian.org> MIME-Version: 1.0 In-Reply-To: <1296451359-28449-3-git-send-email-kibi@debian.org> X-Operating-System: Linux 2.6.32-5-amd64 x86_64 User-Agent: Mutt/1.5.20 (2009-06-14) Cc: intel-gfx@lists.freedesktop.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: , 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:55:58 +0000 (UTC) diff --git a/src/xvmc/intel_batchbuffer.h b/src/xvmc/intel_batchbuffer.h index 6fa1c05..ceb328c 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_ptr); \ batch_ptr += 4; \ } while (0)