[PATCH 01/10] cpm2: Infrastructure code cleanup.
arnd at arndb.de
Sun Sep 9 00:48:53 EST 2007
On Wednesday 05 September 2007, Scott Wood wrote:
> void *cpm_dpram_addr(unsigned long offset)
> - return (void *)(im_dprambase + offset);
> + return (void __force *)(im_dprambase + offset);
This does not look like a legitimate use of __force. I think it's better
to leave the warning in place for cases like this, so that someone else
can clean up the remaining users of this.
In this particular case, it seems that the function should either
be removed or changed to return an __iomem pointer so you get the
warning in the mac-fcc driver using it.
The rest of your patch looks great.
More information about the Linuxppc-dev