From: Benjamin Herrenschmidt Date: Tue, 29 Apr 2008 07:59:11 +0000 (-0700) Subject: iomap: fix 64 bits resources on 32 bits X-Git-Tag: v2.6.26-rc1~644 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b70d3a2c596fb52b02488ad4aef13fa0d602090c;p=pandora-kernel.git iomap: fix 64 bits resources on 32 bits Almost all implementations of pci_iomap() in the kernel, including the generic lib/iomap.c one, copies the content of a struct resource into unsigned long's which will break on 32 bits platforms with 64 bits resources. This fixes all definitions of pci_iomap() to use resource_size_t. I also "fixed" the 64bits arch for consistency. Signed-off-by: Benjamin Herrenschmidt Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed