staging: lustre: replace MIN with min, cast (__kernel_size_t)
authorJeremiah Mahler <jmmahler@gmail.com>
Fri, 26 Dec 2014 00:04:44 +0000 (16:04 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2015 23:49:22 +0000 (15:49 -0800)
commitfce6ad229b5d7a0601f59afa6ce6fdaa09b177f1
tree62479ec533c797ce53066dfd8cf5d7f88128a848
parent387915ded529bc47138d1b1401c94569ac4ce71c
staging: lustre: replace MIN with min, cast (__kernel_size_t)

Switch from MIN to min and fix the new type warning.  The
warning is produced because a comparison between iov_len,
which is a __kernel_size_t, is made to kiov_len, which is an
unsigned int (include/linux/lnet/types.h).  Fix the warning
by casting kiov_len to __kernel_size_t.

Signed-off-by: Jeremiah Mahler <jmmahler@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/lnet/lib-move.c