aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Rossi Bellom <mrossibellom@gmail.com>2017-02-16 05:50:26 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-02-16 13:15:50 -0500
commit66dc935358f43737fc1e745c21be7930e47b8875 (patch)
tree11c6956bfb4b572c9c0c31b8d19a2daef0f63f7a
parent9ff7400bd38c0d0bbcd02ed79cca2e51e10f0958 (diff)
staging: lustre: Fix incompatible argument in osc_match_base
sparse warn about _u32 used for two arguments in function osc_match_base instead of enum ldlm_type and enum ldlm_mode as used in the prototype. Signed-off-by: Maxime Rossi Bellom <mrossibellom@gmail.com> Reviewed-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/lustre/lustre/osc/osc_request.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/lustre/lustre/osc/osc_request.c b/drivers/staging/lustre/lustre/osc/osc_request.c
index 62c743b606e8..c4cfe18c3294 100644
--- a/drivers/staging/lustre/lustre/osc/osc_request.c
+++ b/drivers/staging/lustre/lustre/osc/osc_request.c
@@ -2081,9 +2081,9 @@ no_match:
2081} 2081}
2082 2082
2083int osc_match_base(struct obd_export *exp, struct ldlm_res_id *res_id, 2083int osc_match_base(struct obd_export *exp, struct ldlm_res_id *res_id,
2084 __u32 type, union ldlm_policy_data *policy, __u32 mode, 2084 enum ldlm_type type, union ldlm_policy_data *policy,
2085 __u64 *flags, void *data, struct lustre_handle *lockh, 2085 enum ldlm_mode mode, __u64 *flags, void *data,
2086 int unref) 2086 struct lustre_handle *lockh, int unref)
2087{ 2087{
2088 struct obd_device *obd = exp->exp_obd; 2088 struct obd_device *obd = exp->exp_obd;
2089 __u64 lflags = *flags; 2089 __u64 lflags = *flags;