Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit cedd0bdc authored by Min-Hua Chen's avatar Min-Hua Chen Committed by Christian Brauner
Browse files

fs: fix incorrect fmode_t casts


Use __FMODE_NONOTIFY instead of FMODE_NONOTIFY to fixes
the following sparce warnings:
fs/overlayfs/file.c:48:37: sparse: warning: restricted fmode_t degrades to integer
fs/overlayfs/file.c:128:13: sparse: warning: restricted fmode_t degrades to integer
fs/open.c:1159:21: sparse: warning: restricted fmode_t degrades to integer

Signed-off-by: default avatarMin-Hua Chen <minhuadotchen@gmail.com>
Message-Id: <20230502232210.119063-1-minhuadotchen@gmail.com>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 1168f095
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment