mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
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 <green@linuxhacker.ru> Reviewed-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4c13990e35
commit
b1bca45860
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue