From: Tejun Heo <htejun@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Roland Dreier <rdreier@cisco.com>,
gregkh@suse.de, linux-kernel@vger.kernel.org
Subject: Re: commit 45cd8d8e -- why?
Date: Sat, 28 Apr 2007 13:54:10 +0900 [thread overview]
Message-ID: <4632D372.7020908@gmail.com> (raw)
In-Reply-To: <20070427214923.74c504d9.akpm@linux-foundation.org>
Andrew Morton wrote:
> 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.
Ah.. I already have this fix merged in my patch series. I'm currently
testing things, so please be patient a little bit more. Thanks.
--
tejun
prev parent reply other threads:[~2007-04-28 4:54 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
2007-04-28 4:54 ` Tejun Heo [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=4632D372.7020908@gmail.com \
--to=htejun@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=gregkh@suse.de \
--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 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.