From: Eric Paris <eparis@redhat.com>
To: "J. R. Okajima" <hooanon05@yahoo.co.jp>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: Q. FMODE_NONOTIFY warning
Date: Wed, 19 Jan 2011 14:21:32 -0500 [thread overview]
Message-ID: <1295464892.21577.25.camel@localhost.localdomain> (raw)
In-Reply-To: <7545.1282138784@jrobl>
On Wed, 2010-08-18 at 22:39 +0900, J. R. Okajima wrote:
> By the commit
> ecf081d 2010-07-28 vfs: introduce FMODE_NONOTIFY
> a new warning is produced.
>
> In include/linux/fs.h
> #define FMODE_NONOTIFY ((__force fmode_t)0x1000000)
> :::
> #define OPEN_FMODE(flag) ((__force fmode_t)(((flag + 1) & O_ACCMODE) | \
> (flag & FMODE_NONOTIFY)))
>
> In fs/anon_inodes.c
> anon_inode_getfile(..., int flags)
> {
> file = alloc_file(&path, OPEN_FMODE(flags), fops);
> }
>
> Here the '&' operator handles the passed integer "flags" and "__force
> fmode_t", and we get "warning: restricted fmode_t degrades to integer".
>
> Can we stop this warning?
I apologize that this e-mail (along with many others) got put in my spam
folder and I'm responding months and months late. I don't believe this
is a problem upstream any longer. Thanks for the report and I'm sorry I
didn't respond....
-Eric
prev parent reply other threads:[~2011-01-19 19:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-18 13:39 Q. FMODE_NONOTIFY warning J. R. Okajima
2011-01-19 19:21 ` Eric Paris [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=1295464892.21577.25.camel@localhost.localdomain \
--to=eparis@redhat.com \
--cc=hooanon05@yahoo.co.jp \
--cc=linux-fsdevel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).