From: Andrew Morton <akpm@linux-foundation.org>
To: Roland Dreier <rdreier@cisco.com>
Cc: gregkh@suse.de, linux-kernel@vger.kernel.org,
Tejun Heo <htejun@gmail.com>
Subject: Re: commit 45cd8d8e -- why?
Date: Fri, 27 Apr 2007 21:49:23 -0700 [thread overview]
Message-ID: <20070427214923.74c504d9.akpm@linux-foundation.org> (raw)
In-Reply-To: <ada647hnrf8.fsf@cisco.com>
On Fri, 27 Apr 2007 19:50:19 -0700 Roland Dreier <rdreier@cisco.com> wrote:
> The changelog says:
>
> fs/sysfs/bin.c: In function 'read':
> fs/sysfs/bin.c:77: warning: format '%zd' expects type 'signed size_t', but argument 4 has type 'int'
>
> but the signature of the function read() is
>
> read(struct file * file, char __user * userbuf, size_t count, loff_t * off)
>
> and git blame seems to show it was always thus -- ie count was always size_t.
>
> And now on x86-64 and ia64 with gcc 4.1 at least, I get:
>
> fs/sysfs/bin.c: In function 'read':
> fs/sysfs/bin.c:62: warning: format '%d' expects type 'int', but argument 4 has type 'size_t'
Some patches landed out of order. In Greg's tree (with Tejun's patches)
`count' is a local variable (not an incoming arg) of type `int'.
So this patch was against Tejun's stuff, not against mainline.
I'd have picked that up, but I went and assumed that it was a victim of the
new dev_dbg() printk arg checking stuff. Ho hum.
next prev parent reply other threads:[~2007-04-28 4:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-28 2:50 commit 45cd8d8e -- why? Roland Dreier
2007-04-28 4:49 ` Andrew Morton [this message]
2007-04-28 4:54 ` Tejun Heo
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=20070427214923.74c504d9.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=gregkh@suse.de \
--cc=htejun@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rdreier@cisco.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