staging:lustre: Fix variable type declaration

Fix the following sparse warnings generated by AND-ing FMODE_* constant
with a normal integer.

drivers/staging/lustre/lustre/llite/file.c:102:32: warning: restricted
fmode_t degrades to integer

Signed-off-by: Dulshani Gunawardhana <dulshani.gunawardhana89@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Dulshani Gunawardhana
2013-11-11 15:30:44 +05:30
committed by Greg Kroah-Hartman
parent b047a8dc30
commit 20a6264abf

View File

@@ -85,7 +85,7 @@ struct obd_client_handle {
struct lu_fid och_fid;
struct md_open_data *och_mod;
__u32 och_magic;
int och_flags;
fmode_t och_flags;
};
#define OBD_CLIENT_HANDLE_MAGIC 0xd15ea5ed