From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randy Dunlap Subject: Re: linux-next: build warning after merge of the scsi tree Date: Thu, 23 Jun 2011 10:02:39 -0700 Message-ID: <20110623100239.0e1befbd.randy.dunlap@oracle.com> References: <20110518114912.dfdf8835.sfr@canb.auug.org.au> <1305684362.2856.349.camel@haakon2.linux-iscsi.org> <20110518135823.a809f829.sfr@canb.auug.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from rcsinet10.oracle.com ([148.87.113.121]:25042 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751486Ab1FWRDF convert rfc822-to-8bit (ORCPT ); Thu, 23 Jun 2011 13:03:05 -0400 In-Reply-To: Sender: linux-next-owner@vger.kernel.org List-ID: To: Geert Uytterhoeven Cc: Stephen Rothwell , "Nicholas A. Bellinger" , James Bottomley , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, Kiran Patil , Joe Eykholt , Christoph Hellwig , Yi Zou On Thu, 19 May 2011 18:22:59 +0200 Geert Uytterhoeven wrote: > On Wed, May 18, 2011 at 05:58, Stephen Rothwell wrote: > >> --- a/drivers/target/tcm_fc/tfc_io.c > >> +++ b/drivers/target/tcm_fc/tfc_io.c > >> @@ -206,7 +206,8 @@ int ft_queue_data_in(struct se_cmd *se_cmd) > >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 "xid <0x%x>, remaining <0x%x>, " > >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 "lso_max <0x%x>\n", > >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 __func__, fp, ep->xid, > >> - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 remaining, lport->lso_max); > >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 (unsigned int)remaining, > >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 lport->lso_max); > > > > Given that "remaining" really is a length, surely it makes more sen= se to >=20 > Exactly my comments ... >=20 > > print it with %zd than to cast it and print it with %x ... >=20 > ... except that size_t is unsigned, so %zu would be a little bit bett= er. This still needs to be fixed in linux-next (20110623). --- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your cod= e ***