diff options
| author | Vasily Averin <[email protected]> | 2022-05-22 12:08:02 +0000 |
|---|---|---|
| committer | Jan Kara <[email protected]> | 2022-05-23 09:42:53 +0000 |
| commit | dccd855771b37820b6d976a99729c88259549f85 (patch) | |
| tree | f11585ae60d627b8ea204b803ccb0fb03aa456f9 /lib/lockref.c | |
| parent | fsnotify: consistent behavior for parent not watching children (diff) | |
| download | kernel-dccd855771b37820b6d976a99729c88259549f85.tar.gz kernel-dccd855771b37820b6d976a99729c88259549f85.zip | |
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 <[email protected]>
Reviewed-by: Christian Brauner (Microsoft) <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/lockref.c')
0 files changed, 0 insertions, 0 deletions
