[PATCH] powerpc/usb: use unsigned long to type cast an address of ioremap
Timur Tabi
timur at freescale.com
Fri Nov 4 01:12:44 EST 2011
On Nov 3, 2011, at 7:16 AM, David Laight <David.Laight at ACULAB.COM> wrote:
> Arithmetic on 'void *' should not be done. I know some versions of
> gcc allow it (provided some warning level/option is enabled) but
> that doesn't mean it is valid.
> My suspicions are that is was allowed due to the way 'void *'
> was originally bodged into gcc.
Well, I don't know what else to say. Arithmetic on void* is done all over the kernel. You're a little late to the party if you're going to advocate its avoidance.
More information about the Linuxppc-dev
mailing list