From: Al Viro <viro@ZenIV.linux.org.uk>
To: Pavel Roskin <proski@gnu.org>
Cc: linux-sparse@vger.kernel.org
Subject: Re: [PATCH] saner warnings for restricted types
Date: Tue, 15 Jan 2008 18:58:56 +0000 [thread overview]
Message-ID: <20080115185856.GT27894@ZenIV.linux.org.uk> (raw)
In-Reply-To: <1200418572.17542.2.camel@dv>
On Tue, Jan 15, 2008 at 12:36:12PM -0500, Pavel Roskin wrote:
> On Tue, 2008-01-15 at 16:52 +0000, Al Viro wrote:
> > if (class & TYPE_RESTRICT) {
> > - warning(expr->pos, "restricted degrades to integer");
> > if (class & TYPE_FOULED)
> > *ctype = unfoul(*ctype);
> > + warning(expr->pos, "%sdegrades to integer",
> > + show_typename(*ctype));
>
> Missing space after "%s"?
No. Try it and you'll see... The way show_typename() (actually, the
stuff behind it) works you get a space after the damn thing. What you'll
get is something like
kernel/power/main.c:242:2: warning: restricted suspend_state_t degrades to integer
Actually, if you look at the things like
fs/afs/fsclient.c:465:21: warning: incorrect type in assignment (different base types)
fs/afs/fsclient.c:465:21: expected restricted __be32 [usertype] operation_ID
fs/afs/fsclient.c:465:21: got int
you'll see that the last line is "fs/afs/fsclient.c:465:21: got int \n" -
with whitespace in the end. We could get rid of that, but it'll take more
massage and it's definitely a separate patch series.
next prev parent reply other threads:[~2008-01-15 18:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-15 16:52 [PATCH] saner warnings for restricted types Al Viro
2008-01-15 17:36 ` Pavel Roskin
2008-01-15 18:58 ` Al Viro [this message]
2008-01-15 21:04 ` Pavel Roskin
2008-01-15 23:14 ` Al Viro
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=20080115185856.GT27894@ZenIV.linux.org.uk \
--to=viro@zeniv.linux.org.uk \
--cc=linux-sparse@vger.kernel.org \
--cc=proski@gnu.org \
/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.