Re: [PATCH 1/2] cifs: Use min_t() when comparing "size_t" and "unsigned long"

2014-05-02 Thread Jeff Layton
On Sun, 13 Apr 2014 20:46:21 +0200 Geert Uytterhoeven wrote: > On 32 bit, size_t is "unsigned int", not "unsigned long", causing the > following warning when comparing with PAGE_SIZE, which is always "unsigned > long": > > fs/cifs/file.c: In function ‘cifs_readdata_to_iov’: >

Re: [PATCH 1/2] cifs: Use min_t() when comparing size_t and unsigned long

2014-05-02 Thread Jeff Layton
On Sun, 13 Apr 2014 20:46:21 +0200 Geert Uytterhoeven ge...@linux-m68k.org wrote: On 32 bit, size_t is unsigned int, not unsigned long, causing the following warning when comparing with PAGE_SIZE, which is always unsigned long: fs/cifs/file.c: In function ‘cifs_readdata_to_iov’:

[PATCH 1/2] cifs: Use min_t() when comparing "size_t" and "unsigned long"

2014-04-13 Thread Geert Uytterhoeven
On 32 bit, size_t is "unsigned int", not "unsigned long", causing the following warning when comparing with PAGE_SIZE, which is always "unsigned long": fs/cifs/file.c: In function ‘cifs_readdata_to_iov’: fs/cifs/file.c:2757: warning: comparison of distinct pointer types lacks a cast Introduced

[PATCH 1/2] cifs: Use min_t() when comparing size_t and unsigned long

2014-04-13 Thread Geert Uytterhoeven
On 32 bit, size_t is unsigned int, not unsigned long, causing the following warning when comparing with PAGE_SIZE, which is always unsigned long: fs/cifs/file.c: In function ‘cifs_readdata_to_iov’: fs/cifs/file.c:2757: warning: comparison of distinct pointer types lacks a cast Introduced by