staging: lustre: Fix incompatible argument in osc_match_base
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 staging: lustre: Fix incompatible argument in osc_match_base
Quoted 8 lines
From: Maxime Rossi Bellom <[email protected]>
sparse warn about
_u32used for two arguments in functionosc_match_baseinstead of enumldlm_typeand enumldlm_modeas used in the prototype.Signed-off-by Maxime Rossi Bellom <[email protected]>
One of the pieces of a earlier patch I broke up that got lost :-( Thanks for finding it.
Reviewed-by James Simmons <[email protected]>
Quoted 25 lines
--- drivers/staging/lustre/lustre/osc/osc_request.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/staging/lustre/lustre/osc/osc_request.c +3
-3@@ -2081,9 +2081,9 @@ int osc_enqueue_base(struct obd_export *exp, struct ldlm_res_id *res_id, }int osc_match_base (struct obd_export *exp,struct ldlm_res_id *res_id, -__u32 type,union ldlm_policy_data *policy,__u32 mode, -__u64 *flags,void *data,struct lustre_handle *lockh, -int unref) +enum ldlm_type type,union ldlm_policy_data *policy, +enum ldlm_mode mode,__u64 *flags,void *data, +struct lustre_handle *lockh,int unref) {struct obd_device *obd = exp->exp_obd;__u64 lflags = *flags;Signature · 1 line
2.7.4