From: Andrew Morton <akpm@linux-foundation.org>
To: Tao Ma <tm@tao.ma>
Cc: linux-kernel@vger.kernel.org, axboe@kernel.dk
Subject: Re: [PATCH] block: Remove extra discard_alignment from hd_struct.
Date: Wed, 11 May 2011 17:08:18 -0700 [thread overview]
Message-ID: <20110511170818.6506bb9d.akpm@linux-foundation.org> (raw)
In-Reply-To: <1303287455-3796-1-git-send-email-tm@tao.ma>
On Wed, 20 Apr 2011 16:17:35 +0800
Tao Ma <tm@tao.ma> wrote:
> --- a/fs/partitions/check.c
> +++ b/fs/partitions/check.c
> @@ -255,7 +255,12 @@ ssize_t part_discard_alignment_show(struct device *dev,
> struct device_attribute *attr, char *buf)
> {
> struct hd_struct *p = dev_to_part(dev);
> - return sprintf(buf, "%u\n", p->discard_alignment);
> + struct gendisk *disk = dev_to_disk(dev);
> +
> + return sprintf(buf, "%u\n",
> + (unsigned long long)queue_limit_discard_alignment(
> + &disk->queue->limits,
> + p->start_sect));
fs/partitions/check.c: In function 'part_discard_alignment_show':
fs/partitions/check.c:263: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'long long unsigned int'
um, that should have been apparent from cursory review, let alone
compile testing. And it will fail runtime testing on little-endian
machines if the third arg is passed on the stack.
prev parent reply other threads:[~2011-05-12 0:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-20 8:17 [PATCH] block: Remove extra discard_alignment from hd_struct Tao Ma
2011-05-06 9:34 ` [PATCH RESEND] block: Remove " Tao Ma
2011-05-07 1:28 ` [PATCH] block: Remove extra " Jens Axboe
2011-05-12 0:08 ` Andrew Morton [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=20110511170818.6506bb9d.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=axboe@kernel.dk \
--cc=linux-kernel@vger.kernel.org \
--cc=tm@tao.ma \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.