summaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lustre/include/obd.h
diff options
context:
space:
mode:
authorQuentin Lambert <lambert.quentin@gmail.com>2016-12-08 21:38:27 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-01-03 15:06:49 +0100
commit4091af4a09488039049d5bf91221983bdcd5107a (patch)
tree27264535957d09d7387e12e55c4997be70ed664f /drivers/staging/lustre/lustre/include/obd.h
parentefd6271be19425233ed819cda5daaa69cc832d41 (diff)
downloadop-kernel-dev-4091af4a09488039049d5bf91221983bdcd5107a.zip
op-kernel-dev-4091af4a09488039049d5bf91221983bdcd5107a.tar.gz
staging: lustre: Fix variable type declaration after refactoring
A recent clean-up declared och_flags as a int rather than fmode_t. This lead to the following sparse warning: drivers/staging/lustre/lustre/llite/file.c:106:30: warning: restricted fmode_t degrades to integer This patch fixes this issue. Fixes: 0a1200991234f7 ("staging: lustre: cleanup lustre_lib.h") Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com> Acked-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lustre/include/obd.h')
-rw-r--r--drivers/staging/lustre/lustre/include/obd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/include/obd.h b/drivers/staging/lustre/lustre/include/obd.h
index 1839f4f..6f0f5dd 100644
--- a/drivers/staging/lustre/lustre/include/obd.h
+++ b/drivers/staging/lustre/lustre/include/obd.h
@@ -892,7 +892,7 @@ struct obd_client_handle {
struct md_open_data *och_mod;
struct lustre_handle och_lease_handle; /* open lock for lease */
__u32 och_magic;
- int och_flags;
+ fmode_t och_flags;
};
#define OBD_CLIENT_HANDLE_MAGIC 0xd15ea5ed
OpenPOWER on IntegriCloud