Commit 6015fbefc4dfe1706b64d33c256878b8296d1470

Authored by Benjamin Herrenschmidt
Committed by Greg Kroah-Hartman
1 parent c40a22e0ce

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>

Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff

drivers/pci/setup-res.c
... ... @@ -51,10 +51,12 @@
51 51  
52 52 pcibios_resource_to_bus(dev, &region, 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 55 "BAR %d of %s\n", (unsigned long long)res->start,
56 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 61 new = region.start | (res->flags & PCI_REGION_FLAG_MASK);
60 62 if (res->flags & IORESOURCE_IO)