linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Q. FMODE_NONOTIFY warning
@ 2010-08-18 13:39 J. R. Okajima
  2011-01-19 19:21 ` Eric Paris
  0 siblings, 1 reply; 2+ messages in thread
From: J. R. Okajima @ 2010-08-18 13:39 UTC (permalink / raw)
  To: eparis; +Cc: linux-fsdevel


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-19 19:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-18 13:39 Q. FMODE_NONOTIFY warning J. R. Okajima
2011-01-19 19:21 ` Eric Paris

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).