]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging:lustre: Fix variable type declaration
authorDulshani Gunawardhana <dulshani.gunawardhana89@gmail.com>
Mon, 11 Nov 2013 10:00:44 +0000 (15:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Nov 2013 23:55:16 +0000 (15:55 -0800)
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>
drivers/staging/lustre/lustre/include/lustre_lib.h

index 5e11107d4c66d99816d39faef66b6ef94b105426..b6fd03e45bb771554c995ca4c265d02340fa5d1f 100644 (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