Re: [PATCH] spi: spi-dw: fix all sparse warnings

2011-09-20 Thread Feng Tang
On Wed, 21 Sep 2011 04:50:00 +0800 Grant Likely wrote: > On Tue, Sep 20, 2011 at 11:06:17AM -0700, H Hartley Sweeten wrote: > > The dw_{read,write}[lw] macros produce sparse warnings everytime > > they are used. The "read" ones cause: > > > > warning: cast removes address space of expression >

Re: [PATCH] spi: spi-dw: fix all sparse warnings

2011-09-20 Thread Grant Likely
On Tue, Sep 20, 2011 at 11:06:17AM -0700, H Hartley Sweeten wrote: > The dw_{read,write}[lw] macros produce sparse warnings everytime they > are used. The "read" ones cause: > > warning: cast removes address space of expression > warning: incorrect type in argument 1 (different address spaces) >

[PATCH] spi: spi-dw: fix all sparse warnings

2011-09-20 Thread H Hartley Sweeten
The dw_{read,write}[lw] macros produce sparse warnings everytime they are used. The "read" ones cause: warning: cast removes address space of expression warning: incorrect type in argument 1 (different address spaces) expected void const volatile [noderef] *addr got unsigned int * And the