diff options
author | Vasily Averin <vvs@openvz.org> | 2022-05-22 15:08:02 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2022-05-23 12:42:53 +0300 |
commit | dccd855771b37820b6d976a99729c88259549f85 (patch) | |
tree | f11585ae60d627b8ea204b803ccb0fb03aa456f9 /fs/notify/fdinfo.h | |
parent | e730558adffb88a52e562db089e969ee9510184a (diff) | |
download | linux-dccd855771b37820b6d976a99729c88259549f85.tar.xz |
fanotify: fix incorrect fmode_t casts
Fixes sparce warnings:
fs/notify/fanotify/fanotify_user.c:267:63: sparse:
warning: restricted fmode_t degrades to integer
fs/notify/fanotify/fanotify_user.c:1351:28: sparse:
warning: restricted fmode_t degrades to integer
FMODE_NONTIFY have bitwise fmode_t type and requires __force attribute
for any casts.
Signed-off-by: Vasily Averin <vvs@openvz.org>
Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/9adfd6ac-1b89-791e-796b-49ada3293985@openvz.org
Diffstat (limited to 'fs/notify/fdinfo.h')
0 files changed, 0 insertions, 0 deletions