]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
vfs: sparse: remove a warning on OPEN_FMODE()
authorNamhyung Kim <namhyung@gmail.com>
Tue, 1 Feb 2011 23:52:46 +0000 (15:52 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Feb 2011 00:03:19 +0000 (16:03 -0800)
commit1a44bc8c7cfe69756a116d38aef992d50fc1969d
tree3e830a7fe2f4b57e425421b35c6faebbbb2c7cc2
parent3751d60430fe4c26460a5ca8ad8672d32f93bcb1
vfs: sparse: remove a warning on OPEN_FMODE()

AND-ing FMODE_* constant with normal integer results in following
sparse warnings. Fix it.

 fs/open.c:662:21: warning: restricted fmode_t degrades to integer
 fs/anon_inodes.c:123:34: warning: restricted fmode_t degrades to integer

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/fs.h