summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorDulshani Gunawardhana2013-11-11 11:00:44 +0100
committerGreg Kroah-Hartman2013-11-12 00:55:16 +0100
commit20a6264abf8bd77bbfcbfc9e7a279203f1630410 (patch)
tree402f3d2e9fb5d78bcc05b04ae8eac831de0a7643 /drivers/staging
parentstaging: lustre: Fix incorrect type in assignment (diff)
downloadkernel-qcow2-linux-20a6264abf8bd77bbfcbfc9e7a279203f1630410.tar.gz
kernel-qcow2-linux-20a6264abf8bd77bbfcbfc9e7a279203f1630410.tar.xz
kernel-qcow2-linux-20a6264abf8bd77bbfcbfc9e7a279203f1630410.zip
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/lustre/lustre/include/lustre_lib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/include/lustre_lib.h b/drivers/staging/lustre/lustre/include/lustre_lib.h
index 5e11107d4c66..b6fd03e45bb7 100644
--- a/drivers/staging/lustre/lustre/include/lustre_lib.h
+++ b/drivers/staging/lustre/lustre/include/lustre_lib.h
@@ -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