diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2007-12-10 01:32:16 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-02-01 18:04:25 -0500 |
commit | 6015fbefc4dfe1706b64d33c256878b8296d1470 (patch) | |
tree | 6aa617715163f3f27c3276138009f38197d76fb0 | |
parent | c40a22e0ce5eb400f27449e59e43d021bee58b8d (diff) |
PCI: Fix warning in setup-res.c on 32-bit platforms with 64-bit resources
This adds appropriate casts to avoid a warning and print the correct
values in pr_debug.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/pci/setup-res.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pci/setup-res.c b/drivers/pci/setup-res.c index cb7388c0406f..4be7ccf7e3ae 100644 --- a/drivers/pci/setup-res.c +++ b/drivers/pci/setup-res.c | |||
@@ -51,10 +51,12 @@ pci_update_resource(struct pci_dev *dev, struct resource *res, int resno) | |||
51 | 51 | ||
52 | pcibios_resource_to_bus(dev, ®ion, res); | 52 | pcibios_resource_to_bus(dev, ®ion, res); |
53 | 53 | ||
54 | pr_debug(" got res [%llx:%llx] bus [%lx:%lx] flags %lx for " | 54 | pr_debug(" got res [%llx:%llx] bus [%llx:%llx] flags %lx for " |
55 | "BAR %d of %s\n", (unsigned long long)res->start, | 55 | "BAR %d of %s\n", (unsigned long long)res->start, |
56 | (unsigned long long)res->end, | 56 | (unsigned long long)res->end, |
57 | region.start, region.end, res->flags, resno, pci_name(dev)); | 57 | (unsigned long long)region.start, |
58 | (unsigned long long)region.end, | ||
59 | (unsigned long)res->flags, resno, pci_name(dev)); | ||
58 | 60 | ||
59 | new = region.start | (res->flags & PCI_REGION_FLAG_MASK); | 61 | new = region.start | (res->flags & PCI_REGION_FLAG_MASK); |
60 | if (res->flags & IORESOURCE_IO) | 62 | if (res->flags & IORESOURCE_IO) |