From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751870Ab0JHDN1 (ORCPT ); Thu, 7 Oct 2010 23:13:27 -0400 Received: from casper.infradead.org ([85.118.1.10]:41633 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751172Ab0JHDN0 (ORCPT ); Thu, 7 Oct 2010 23:13:26 -0400 Message-ID: <4CAE8C4F.2060609@infradead.org> Date: Fri, 08 Oct 2010 00:13:19 -0300 From: Mauro Carvalho Chehab User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100827 Red Hat/3.1.3-1.el6 Lightning/1.0b2 Thunderbird/3.1.3 MIME-Version: 1.0 To: Stephen Rothwell CC: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: linux-next: build warning after merge of the v4l-dvb tree References: <20101008114945.636093c9.sfr@canb.auug.org.au> In-Reply-To: <20101008114945.636093c9.sfr@canb.auug.org.au> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em 07-10-2010 21:49, Stephen Rothwell escreveu: > Hi Mauro, > > After merging the kvm tree, today's linux-next build (x86_64 allmodconfig) > produced this warning: > > drivers/media/video/videobuf-dma-sg.c: In function 'videobuf_pages_to_sg': > drivers/media/video/videobuf-dma-sg.c:119: warning: comparison of distinct pointer types lacks a cast > drivers/media/video/videobuf-dma-sg.c:120: warning: comparison of distinct pointer types lacks a cast > > Commit ecc736735ecf922d7f31d34417f7c42f8ec9eb67 ("V4L/DVB: > videobuf-dma-sg: Fix a warning due to the usage of min(PAGE_SIZE, arg)") > tried to fix it (presumably on a 32 bit build), but is not correct for 64 > bits . > Hi Stephen, Thanks. I have already a fix for it, using min_t(size_t, PAGE_SIZE, arg). I'll add it probably tomorrow for the linux-next tree. Thanks, Mauro