diff options
author | Jeff Garzik | 2006-12-04 02:49:23 +0100 |
---|---|---|
committer | James Bottomley | 2006-12-05 17:25:35 +0100 |
commit | 00769ec40074b753c9b218c2ccaba2bfbfffe056 (patch) | |
tree | b8a05cbdb85f7c4ca8e4368b74a66dfccc3a7b8d /net/key | |
parent | [SCSI] tgt: fix undefined flush_dcache_page() problem (diff) | |
download | kernel-qcow2-linux-00769ec40074b753c9b218c2ccaba2bfbfffe056.tar.gz kernel-qcow2-linux-00769ec40074b753c9b218c2ccaba2bfbfffe056.tar.xz kernel-qcow2-linux-00769ec40074b753c9b218c2ccaba2bfbfffe056.zip |
[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 <jeff@garzik.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'net/key')
0 files changed, 0 insertions, 0 deletions