Skip to contentSkip to conversation

fs/open.c:817:18: sparse: restricted fmode_t degrades to integer

PATCH In review Fengguang Wu 1 participant 1 message Aug 26, 2012 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 32/32 fs/open.c:817:18: sparse: restricted fmode_t degrades to integer

Hi Al,

FYI, there are new sparse warnings show up in

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git master
head:   9283194882d18e3755c4ebc0b86db9f9a4f4c81a
commit: 9283194882d18e3755c4ebc0b86db9f9a4f4c81a [32/32] don't leak O_CLOEXEC into ->f_flags

All sparse warnings:

+ fs/open.c:817:18: sparse: restricted fmode_t degrades to integer

vim +817 fs/open.c
814 op->mode = 0;
815
816 /* Must never be set by userspace */

Quoted 1 line

817 flags &= ~FMODE_NONOTIFY & ~O_CLOEXEC;

818
819 /*
820 * O_SYNC is implemented as __O_SYNC|O_DSYNC. As many places only

---
0-DAY kernel build testing backend Open Source Technology Centre
Fengguang Wu <[email protected]> Intel Corporation