public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: Bart Van Assche <bvanassche@acm.org>
Cc: Christoph Hellwig <hch@lst.de>,
	Wu Fengguang <fengguang.wu@intel.com>,
	Sagi Grimberg <sagig@mellanox.com>,
	Sebastian Parschauer <sebastian.riemer@profitbricks.com>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	linux-rdma <linux-rdma@vger.kernel.org>
Subject: Re: [PATCH] IB/srp: Fix a 32-bit compiler warning
Date: Thu, 6 Nov 2014 16:34:54 +0100	[thread overview]
Message-ID: <20141106153454.GB22415@lst.de> (raw)
In-Reply-To: <545B8324.7010106@acm.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.

      reply	other threads:[~2014-11-06 15:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-06 14:18 [PATCH] IB/srp: Fix a 32-bit compiler warning Bart Van Assche
2014-11-06 15:34 ` Christoph Hellwig [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141106153454.GB22415@lst.de \
    --to=hch@lst.de \
    --cc=bvanassche@acm.org \
    --cc=fengguang.wu@intel.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=sagig@mellanox.com \
    --cc=sebastian.riemer@profitbricks.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox