kernel-ark/drivers
Amos Waterland 3c6de9295d [PATCH] fix drivers/pci/probe.c warning
This function expects an unsigned 32-bit type as its third argument:

 static u32 pci_size(u32 base, u32 maxbase, u32 mask)

However, given these definitions:

 #define PCI_BASE_ADDRESS_MEM_MASK (~0x0fUL)
 #define PCI_ROM_ADDRESS_MASK (~0x7ffUL)

these two calls in drivers/pci/probe.c are problematic for architectures
for which a UL is not equivalent to a u32:

 sz = pci_size(l, sz, PCI_BASE_ADDRESS_MEM_MASK);
 sz = pci_size(l, sz, PCI_ROM_ADDRESS_MASK);

Hence the below compile warning when building for ARCH=ppc64:

 drivers/pci/probe.c: In function `pci_read_bases':
 /.../probe.c:168: warning: large integer implicitly truncated to unsigned type
 /.../probe.c:218: warning: large integer implicitly truncated to unsigned type

Here is a simple fix.

Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-22 07:58:25 -07:00
..
acorn [ARM] Fix pcf8583 to build 2005-09-20 21:01:13 +01:00
acpi
atm
base [PATCH] fix class symlinks in sysfs 2005-09-22 07:58:24 -07:00
block [PATCH] remove blkdev_scsi_issue_flush_fn again 2005-09-21 10:11:54 -07:00
bluetooth
cdrom
char
connector
cpufreq
crypto
dio
eisa
fc4
firmware
hwmon
i2c
ide
ieee1394
infiniband [IB] Fix RMPP receive length calculation 2005-09-21 12:33:09 -07:00
input
isdn
macintosh
mca
md
media
message [PATCH] Fix I2O config-osm init to return proper error 2005-09-21 10:11:54 -07:00
mfd
misc
mmc
mtd
net [PATCH] r8169: call proper VLAN receive function 2005-09-21 22:49:07 -04:00
nubus
oprofile
parisc
parport
pci [PATCH] fix drivers/pci/probe.c warning 2005-09-22 07:58:25 -07:00
pcmcia
pnp
s390 [PATCH] driver core: add helper device_is_registered() 2005-09-22 07:58:24 -07:00
sbus
scsi Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-for-linus-2.6 2005-09-20 08:50:49 -07:00
serial
sh
sn
tc
telephony
usb [PATCH] driver core: add helper device_is_registered() 2005-09-22 07:58:24 -07:00
video Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6 2005-09-21 07:53:38 -07:00
w1
zorro
Kconfig
Makefile