From: Oleg Drokin Date: Wed, 7 Dec 2016 22:41:28 +0000 (-0500) Subject: staging/lustre/ldlm: Correct itree_overlap_cb return type X-Git-Tag: v5.15~11841^2~537 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1bca45860b5419f396d9cb60a603dcd59ee2ff5;p=platform%2Fkernel%2Flinux-starfive.git staging/lustre/ldlm: Correct itree_overlap_cb return type As per interval_search() prototype, the callback should return enum, not int. This fixes correspondign sparse warning. Signed-off-by: Oleg Drokin Reviewed-by: James Simmons Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_lock.c b/drivers/staging/lustre/lustre/ldlm/ldlm_lock.c index a4a291a..f4cbc89 100644 --- a/drivers/staging/lustre/lustre/ldlm/ldlm_lock.c +++ b/drivers/staging/lustre/lustre/ldlm/ldlm_lock.c @@ -1148,7 +1148,7 @@ static int lock_matches(struct ldlm_lock *lock, struct lock_match_data *data) return INTERVAL_ITER_STOP; } -static unsigned int itree_overlap_cb(struct interval_node *in, void *args) +static enum interval_iter itree_overlap_cb(struct interval_node *in, void *args) { struct ldlm_interval *node = to_ldlm_interval(in); struct lock_match_data *data = args;