Re: [patch] err.h: IS_ERR() can accept __user pointers

2013-05-08 Thread Andrew Morton
On Wed, 8 May 2013 10:42:22 +0300 Dan Carpenter wrote: > Sparse generates a false positive when you pass a __user or __iomem > pointer to the IS_ERR() functions. > > drivers/rtc/rtc-ds1286.c:344:36: sparse: incorrect type in argument 1 > (different address spaces) > drivers/rtc/rtc-ds1286.c:34

Re: [patch] err.h: IS_ERR() can accept __user pointers

2013-05-08 Thread Christopher Li
On Wed, May 8, 2013 at 12:42 AM, Dan Carpenter wrote: > Sparse generates a false positive when you pass a __user or __iomem > pointer to the IS_ERR() functions. > > drivers/rtc/rtc-ds1286.c:344:36: sparse: incorrect type in argument 1 > (different address spaces) > drivers/rtc/rtc-ds1286.c:344:36

[patch] err.h: IS_ERR() can accept __user pointers

2013-05-08 Thread Dan Carpenter
Sparse generates a false positive when you pass a __user or __iomem pointer to the IS_ERR() functions. drivers/rtc/rtc-ds1286.c:344:36: sparse: incorrect type in argument 1 (different address spaces) drivers/rtc/rtc-ds1286.c:344:36:expected void const *ptr drivers/rtc/rtc-ds1286.c:344:36: