Re: [PATCH] mtd: Fix warning in access_ok() parameter passing

2014-05-12 Thread Brian Norris
On Thu, May 01, 2014 at 08:40:54PM +0200, Geert Uytterhoeven wrote: > On m68k, where access_ok() doesn't cast the address parameter: > > drivers/mtd/mtdchar.c: In function 'mtdchar_write_ioctl': > drivers/mtd/mtdchar.c:575:4: warning: passing argument 2 of 'access_ok' makes > pointer from integer

[PATCH] mtd: Fix warning in access_ok() parameter passing

2014-05-01 Thread Geert Uytterhoeven
On m68k, where access_ok() doesn't cast the address parameter: drivers/mtd/mtdchar.c: In function 'mtdchar_write_ioctl': drivers/mtd/mtdchar.c:575:4: warning: passing argument 2 of 'access_ok' makes pointer from integer without a cast [enabled by default] arch/m68k/include/asm/uaccess_mm.h:17:90: