Re: [PATCH] staging: lustre: Fix incompatible argument in osc_match_base

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: Maxime Rossi Bellom <mrossibellom@xxxxxxxxx>
> 
> 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@xxxxxxxxx>

One of the pieces of a earlier patch I broke up that got lost :-(
Thanks for finding it.

Reviewed-by: James Simmons <jsimmons@xxxxxxxxxxxxx>

> ---
>  drivers/staging/lustre/lustre/osc/osc_request.c | 6 +++---
>  1 file 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 62c743b..c4cfe18 100644
> --- a/drivers/staging/lustre/lustre/osc/osc_request.c
> +++ b/drivers/staging/lustre/lustre/osc/osc_request.c
> @@ -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;
> -- 
> 2.7.4
> 
> 
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux