At Tue, 14 Feb 2006 15:35:29 -0500,..
linux-os (Dick Johnson) wrote:
On Tue, 14 Feb 2006, Takashi Iwai wrote:
Add the missing cast to __iomem pointer in some scsi drivers.
...-#define WROUTDOOR(adapter,value) writel(value, (adapter)->base + 0x2C)
..+#define WROUTDOOR(adapter,value) writel(value, (void __iomem *)((adapter)->base + 0x2C))
With all these casts, doesn't it point out that something is wrong
with writel(), writew(), readl(), and readw() ??? The cast's to
volatile types should be within the macros, not scattered
throughout everyone's driver code!
The patch is just for fixing compile warnings.
readl(), writel() and co are inline functions, and they should be cast
explicitly on the caller side.