From: "J. R. Okajima" <hooanon05@yahoo.co.jp>
To: eparis@redhat.com
Cc: linux-fsdevel@vger.kernel.org
Subject: Q. FMODE_NONOTIFY warning
Date: Wed, 18 Aug 2010 22:39:44 +0900 [thread overview]
Message-ID: <7545.1282138784@jrobl> (raw)
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?
J. R. Okajima
next reply other threads:[~2010-08-18 13:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-18 13:39 J. R. Okajima [this message]
2011-01-19 19:21 ` Q. FMODE_NONOTIFY warning Eric Paris
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=7545.1282138784@jrobl \
--to=hooanon05@yahoo.co.jp \
--cc=eparis@redhat.com \
--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).