staging: lustre: mdc: use __FMODE_EXEC macro
authorJuston Li <juston.h.li@gmail.com>
Wed, 19 Nov 2014 01:03:51 +0000 (17:03 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Nov 2014 19:02:22 +0000 (11:02 -0800)
commit962dbfd6144ab04750018b689eddf0857fbc11cb
tree07364c4a22df23aa50b7ec04df50d38110132d63
parent565f3d2fd09a6e9c7615ae369beedabcf0e86b53
staging: lustre: mdc: use __FMODE_EXEC macro

FMODE_EXEC is type fmode_t but is used in operations
with integers which leads to sparse warnings:
drivers/staging/lustre/lustre/mdc/mdc_lib.c:198:21: warning: restricted fmode_t degrades to integer
drivers/staging/lustre/lustre/mdc/mdc_locks.c:300:49: warning: restricted fmode_t degrades to integer

Fix by using __FMODE_EXEC macro defined in fs.h.

Note the same warnings occurs with other fmode flags
here but they don't have a corresponding int macro.

Changes since v1:
remove ifdefs. FMODE_EXEC and __FMODE_EXEC should
always be defined in fs.h

Signed-off-by: Juston Li <juston.h.li@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/mdc/mdc_lib.c
drivers/staging/lustre/lustre/mdc/mdc_locks.c
This page took 0.02719 seconds and 5 git commands to generate.