diff options
author | Tony Breeds <tony@bakeyournoodle.com> | 2008-10-08 13:36:57 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2008-10-08 13:36:57 -0400 |
commit | e92350463891a20960e858ef6137aa456e616175 (patch) | |
tree | 0af5698e83827d92b656e6f47e3c3d4dcee96b07 /arch | |
parent | 618b26d52843c0f85b8eb143cf2695d7f6fd072d (diff) |
powerpc/mpc5200: Silence warnings in arch/powerpc/platforms/52xx/mpc52xx_pci.c
Explicitly cast resource fields to unsigned long long, and match format
specifier.
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/52xx/mpc52xx_pci.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_pci.c b/arch/powerpc/platforms/52xx/mpc52xx_pci.c index 5a382bb15f62..b49a18527661 100644 --- a/arch/powerpc/platforms/52xx/mpc52xx_pci.c +++ b/arch/powerpc/platforms/52xx/mpc52xx_pci.c | |||
@@ -265,8 +265,11 @@ mpc52xx_pci_setup(struct pci_controller *hose, | |||
265 | /* Memory windows */ | 265 | /* Memory windows */ |
266 | res = &hose->mem_resources[0]; | 266 | res = &hose->mem_resources[0]; |
267 | if (res->flags) { | 267 | if (res->flags) { |
268 | pr_debug("mem_resource[0] = {.start=%x, .end=%x, .flags=%lx}\n", | 268 | pr_debug("mem_resource[0] = " |
269 | res->start, res->end, res->flags); | 269 | "{.start=%llx, .end=%llx, .flags=%llx}\n", |
270 | (unsigned long long)res->start, | ||
271 | (unsigned long long)res->end, | ||
272 | (unsigned long long)res->flags); | ||
270 | out_be32(&pci_regs->iw0btar, | 273 | out_be32(&pci_regs->iw0btar, |
271 | MPC52xx_PCI_IWBTAR_TRANSLATION(res->start, res->start, | 274 | MPC52xx_PCI_IWBTAR_TRANSLATION(res->start, res->start, |
272 | res->end - res->start + 1)); | 275 | res->end - res->start + 1)); |
@@ -297,9 +300,11 @@ mpc52xx_pci_setup(struct pci_controller *hose, | |||
297 | printk(KERN_ERR "%s: Didn't find IO resources\n", __FILE__); | 300 | printk(KERN_ERR "%s: Didn't find IO resources\n", __FILE__); |
298 | return; | 301 | return; |
299 | } | 302 | } |
300 | pr_debug(".io_resource={.start=%x,.end=%x,.flags=%lx} " | 303 | pr_debug(".io_resource={.start=%llx,.end=%llx,.flags=%llx} " |
301 | ".io_base_phys=0x%p\n", | 304 | ".io_base_phys=0x%p\n", |
302 | res->start, res->end, res->flags, (void*)hose->io_base_phys); | 305 | (unsigned long long)res->start, |
306 | (unsigned long long)res->end, | ||
307 | (unsigned long long)res->flags, (void*)hose->io_base_phys); | ||
303 | out_be32(&pci_regs->iw2btar, | 308 | out_be32(&pci_regs->iw2btar, |
304 | MPC52xx_PCI_IWBTAR_TRANSLATION(hose->io_base_phys, | 309 | MPC52xx_PCI_IWBTAR_TRANSLATION(hose->io_base_phys, |
305 | res->start, | 310 | res->start, |