From: Jeff Garzik Date: Mon, 4 Dec 2006 01:49:23 +0000 (-0500) Subject: [SCSI] megaraid: fix MMIO casts X-Git-Tag: v2.6.20-rc1~34^2~20^2~41^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00769ec40074b753c9b218c2ccaba2bfbfffe056;p=pandora-kernel.git [SCSI] megaraid: fix MMIO casts megaraid's MMIO RD*/WR* macros directly call readl() and writel() with an 'unsigned long' argument. This throws a warning, but is otherwise OK because the 'unsigned long' is really the result of ioremap(). This setup is also OK because the variable can hold an ioremap cookie /or/ a PCI I/O port (PIO). However, to fix the warning thrown when readl() and writel() are passed an unsigned long cookie, I introduce 'void __iomem *mmio_base', holding the same value as 'base'. This will silence the warnings, and also cause an oops whenever these MMIO-only functions are ever accidentally passed an I/O address. Signed-off-by: Jeff Garzik Signed-off-by: James Bottomley --- Reading git-diff-tree failed