Re: min() and max() have warning: comparison of distinct pointer types lacks a cast

2014-04-22 Thread David Rientjes
On Tue, 22 Apr 2014, LF.Tan wrote: > Hi all > > Have these warning messages when compiling kernel. > Anyone know what's wrong? > > Regards. > > In file included from mm/readahead.c:10:0: > mm/readahead.c: In function 'max_sane_readahead': >

Re: min() and max() have warning: comparison of distinct pointer types lacks a cast

2014-04-22 Thread David Rientjes
On Tue, 22 Apr 2014, LF.Tan wrote: Hi all Have these warning messages when compiling kernel. Anyone know what's wrong? Regards. In file included from mm/readahead.c:10:0: mm/readahead.c: In function 'max_sane_readahead': include/linux/kernel.h:713:17:

min() and max() have warning: comparison of distinct pointer types lacks a cast

2014-04-21 Thread LF.Tan
Hi all Have these warning messages when compiling kernel. Anyone know what's wrong? Regards. In file included from mm/readahead.c:10:0: mm/readahead.c: In function 'max_sane_readahead': include/linux/kernel.h:713:17: warning: comparison of distinct pointer types

min() and max() have warning: comparison of distinct pointer types lacks a cast

2014-04-21 Thread LF.Tan
Hi all Have these warning messages when compiling kernel. Anyone know what's wrong? Regards. In file included from mm/readahead.c:10:0: mm/readahead.c: In function 'max_sane_readahead': include/linux/kernel.h:713:17: warning: comparison of distinct pointer types