-
- Downloads
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 <benh@kernel.crashing.org> Cc: <linux-arch@vger.kernel.org> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- arch/alpha/kernel/pci.c 2 additions, 2 deletionsarch/alpha/kernel/pci.c
- arch/arm/mm/iomap.c 2 additions, 2 deletionsarch/arm/mm/iomap.c
- arch/frv/mb93090-mb00/pci-iomap.c 2 additions, 2 deletionsarch/frv/mb93090-mb00/pci-iomap.c
- arch/mips/lib/iomap-pci.c 2 additions, 2 deletionsarch/mips/lib/iomap-pci.c
- arch/mn10300/unit-asb2305/pci-iomap.c 2 additions, 2 deletionsarch/mn10300/unit-asb2305/pci-iomap.c
- arch/parisc/lib/iomap.c 2 additions, 2 deletionsarch/parisc/lib/iomap.c
- arch/ppc/kernel/pci.c 2 additions, 2 deletionsarch/ppc/kernel/pci.c
- arch/sh/drivers/pci/pci.c 2 additions, 2 deletionsarch/sh/drivers/pci/pci.c
- arch/sparc/lib/iomap.c 2 additions, 2 deletionsarch/sparc/lib/iomap.c
- arch/sparc64/lib/iomap.c 2 additions, 2 deletionsarch/sparc64/lib/iomap.c
- arch/v850/kernel/rte_mb_a_pci.c 2 additions, 2 deletionsarch/v850/kernel/rte_mb_a_pci.c
- lib/iomap.c 1 addition, 1 deletionlib/iomap.c
Please register or sign in to comment