aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lustre/llite/llite_mmap.c
diff options
context:
space:
mode:
authorJuston Li <juston.h.li@gmail.com>2014-11-18 17:03:51 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-22 11:02:22 -0800
commit962dbfd6144ab04750018b689eddf0857fbc11cb (patch)
tree07364c4a22df23aa50b7ec04df50d38110132d63 /drivers/staging/lustre/lustre/llite/llite_mmap.c
parentdrivers: staging: lustre: lnet: api-nc.c: Fix Style Warnings (diff)
downloadlinux-dev-962dbfd6144ab04750018b689eddf0857fbc11cb.tar.xz
linux-dev-962dbfd6144ab04750018b689eddf0857fbc11cb.zip
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>
Diffstat (limited to 'drivers/staging/lustre/lustre/llite/llite_mmap.c')
0 files changed, 0 insertions, 0 deletions