From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Cox Date: Wed, 04 Jan 2012 11:48:22 +0000 Subject: Re: [patch] gma500: silence gcc warnings in mid_get_vbt_data() Message-Id: <20120104114822.0fd32fba@bob.linux.org.uk> List-Id: References: <20120104072610.GH30978@elgon.mountain> In-Reply-To: <20120104072610.GH30978@elgon.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Carpenter Cc: Greg Kroah-Hartman , kernel-janitors@vger.kernel.org, dri-devel@lists.freedesktop.org, Paul Gortmaker , Dave Airlie On Wed, 4 Jan 2012 10:26:10 +0300 Dan Carpenter wrote: > Add a cast here to silence a Gcc warning. > drivers/gpu/drm/gma500/mid_bios.c:214:28: warning: > cast from pointer to integer of different size > [-Wpointer-to-int-cast] > > Signed-off-by: Dan Carpenter > --- > Compile tested only. It's actually a non-bug (no 64bit boxes and we always take from within the low 32bits). I guess gcc would have to extremely smart to figure that out though. Acked-by: Alan Cox