Re: [PATCH] rds: Fix min() warning in rds_message_inc_copy_to_user()

From: David Miller
Date: Mon Dec 15 2014 - 11:49:30 EST


From: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
Date: Mon, 15 Dec 2014 13:21:42 +0100

> net/rds/message.c: In function ʽrds_message_inc_copy_to_userʼ:
> net/rds/message.c:328: warning: comparison of distinct pointer types lacks a cast
>
> Use min_t(unsigned long, ...) like is done in
> rds_message_copy_from_user().
>
> Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>

Also applied, thanks Geert.