Commit 20a6264a authored by Dulshani Gunawardhana's avatar Dulshani Gunawardhana Committed by Greg Kroah-Hartman

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: default avatarDulshani Gunawardhana <dulshani.gunawardhana89@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b047a8dc
...@@ -85,7 +85,7 @@ struct obd_client_handle { ...@@ -85,7 +85,7 @@ struct obd_client_handle {
struct lu_fid och_fid; struct lu_fid och_fid;
struct md_open_data *och_mod; struct md_open_data *och_mod;
__u32 och_magic; __u32 och_magic;
int och_flags; fmode_t och_flags;
}; };
#define OBD_CLIENT_HANDLE_MAGIC 0xd15ea5ed #define OBD_CLIENT_HANDLE_MAGIC 0xd15ea5ed
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment