From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH] IB/srp: Fix a 32-bit compiler warning Date: Thu, 6 Nov 2014 16:34:54 +0100 Message-ID: <20141106153454.GB22415@lst.de> References: <545B8324.7010106@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <545B8324.7010106@acm.org> Sender: linux-scsi-owner@vger.kernel.org To: Bart Van Assche Cc: Christoph Hellwig , Wu Fengguang , Sagi Grimberg , Sebastian Parschauer , "linux-scsi@vger.kernel.org" , linux-rdma List-Id: linux-rdma@vger.kernel.org On Thu, Nov 06, 2014 at 03:18:12PM +0100, Bart Van Assche wrote: > The result of a pointer subtraction has type ptrdiff_t. Hence change a > %ld format specifier into %td. This change avoids that the following > warning is printed on 32-bit systems: > > warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'int' [-Wformat=] Thanks. Given that this is a new warning in the patches I merged I'll add this one as well.