From: "J. Bruce Fields" <bfields@fieldses.org>
To: Neil Brown <neilb@suse.de>
Cc: nfs@lists.sourceforge.net, Elimar Riesebieter <riesebie@lxtec.de>
Subject: Re: 2.6.22-rc2 built on ppc
Date: Tue, 22 May 2007 13:20:23 -0400 [thread overview]
Message-ID: <20070522172023.GE13898@fieldses.org> (raw)
In-Reply-To: <18002.33378.2388.800348@notabene.brown>
On Tue, May 22, 2007 at 03:40:50PM +1000, Neil Brown wrote:
> On Sunday May 20, riesebie@lxtec.de wrote:
> > fs/nfsd/nfs4acl.c: In function '_posix_to_nfsv4_one':
> > fs/nfsd/nfs4acl.c:227: warning: 'pas.owner' may be used uninitialized in this function
> > fs/nfsd/nfs4acl.c:227: warning: 'pas.group' may be used uninitialized in this function
> > fs/nfsd/nfs4acl.c:227: warning: 'pas.other' may be used uninitialized in this function
>
> Yes....
> The reality is that these fields will not be used uninitialised. This
> is because every 'posix_acl' always has an ACL_USER_OBJ, and
> ACL_GROUP_OBJ, and an ACL_OTHER. Isn't it Bruce ??
Yeah, note the:
/* We assume the acl has been verified with posix_acl_valid. */
at the top of _posix_to_nfsv4_one()--as long as that's true, the
warnings are bogus. Of course, this isn't the sort of thing you'd
expect a compiler to know. But probably it should know it can't know,
and be quiet.
> Maybe we could set all three to zero at the top of
> summarize_posix_acl, but doing that just to get the compiler to be
> quite is sometimes frowned upon.
>
> Bruce? Do you have an opinion?
You've summed it up.
I hate the compile noise too. If people really wanted the
initialization there, and didn't think it would make the code more
confusing (e.g. by implying the rest of the code should also be dealing
with the case when the ACL_USER_OBJ, ACL_GROUP, or ACL_OTHER entries
weren't there), then I'd be OK with adding it. Though I'm not
particularly interested in another flamewar about whose fault these
warnings are.
--b.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next prev parent reply other threads:[~2007-05-22 17:20 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-20 11:25 2.6.22-rc2 built on ppc Elimar Riesebieter
2007-05-22 5:40 ` Neil Brown
2007-05-22 17:20 ` J. Bruce Fields [this message]
[not found] <20070520112904.GM3253@aragorn.home.lxtec.de>
2007-05-20 15:53 ` Stefan Richter
2007-05-20 16:01 ` Stefan Richter
2007-05-20 16:49 ` Arnd Bergmann
2007-05-20 18:19 ` Segher Boessenkool
2007-05-20 18:40 ` Stefan Richter
2007-05-20 20:39 ` Geert Uytterhoeven
-- strict thread matches above, loose matches on Subject: below --
2007-05-20 11:30 Elimar Riesebieter
2007-05-20 11:27 Elimar Riesebieter
2007-05-20 11:19 Elimar Riesebieter
2007-05-20 11:18 Elimar Riesebieter
2007-05-20 17:48 ` Patrick McHardy
2007-05-20 10:59 Elimar Riesebieter
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=20070522172023.GE13898@fieldses.org \
--to=bfields@fieldses.org \
--cc=neilb@suse.de \
--cc=nfs@lists.sourceforge.net \
--cc=riesebie@lxtec.de \
/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.