summaryrefslogtreecommitdiffstats
path: root/kernel/acct.c
diff options
context:
space:
mode:
authorAmos Waterland <apw@us.ibm.com>2005-09-22 00:48:19 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-22 07:58:25 -0700
commit3c6de9295d28a4fc868b2c09f23e318e3e7b9b6b (patch)
treebc328ba9645a9d19c3b132f71e74ef3f7ed76f7a /kernel/acct.c
parent656da9da3745abcbbbdca598745d04c6de2c8843 (diff)
downloadkernel-crypto-3c6de9295d28a4fc868b2c09f23e318e3e7b9b6b.tar.gz
kernel-crypto-3c6de9295d28a4fc868b2c09f23e318e3e7b9b6b.tar.xz
kernel-crypto-3c6de9295d28a4fc868b2c09f23e318e3e7b9b6b.zip
[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>
Diffstat (limited to 'kernel/acct.c')
0 files changed, 0 insertions, 0 deletions