Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Fix warning when printing a resource_size_t

resource_size_t is 64 bits on PowerPC 64.

Gets rid of this warning:

arch/powerpc/kernel/pci_64.c: In function 'pcibios_map_io_space':
arch/powerpc/kernel/pci_64.c:504: warning: format '%016lx' expects type 'long unsigned int', but argument 2 has type 'resource_size_t'

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Stephen Rothwell and committed by
Benjamin Herrenschmidt
bcba0778 6d1386d5

+1 -1
+1 -1
arch/powerpc/kernel/pci_64.c
··· 506 506 pr_debug("IO mapping for PHB %s\n", hose->dn->full_name); 507 507 pr_debug(" phys=0x%016llx, virt=0x%p (alloc=0x%p)\n", 508 508 hose->io_base_phys, hose->io_base_virt, hose->io_base_alloc); 509 - pr_debug(" size=0x%016lx (alloc=0x%016lx)\n", 509 + pr_debug(" size=0x%016llx (alloc=0x%016lx)\n", 510 510 hose->pci_io_size, size_page); 511 511 512 512 /* Establish the mapping */