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

powerpc/pseries: Fix warnings when printing resource_size_t

resource_size_t is 64 bits on pseries

Gets rid of these warnings:

arch/powerpc/platforms/pseries/iommu.c: In function 'pci_dma_bus_setup_pSeries':
arch/powerpc/platforms/pseries/iommu.c:391: warning: format '%lx' expects type 'long unsigned int', but argument 2 has type 'resource_size_t'
arch/powerpc/platforms/pseries/iommu.c:417: warning: format '%lx' 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
41febbc8 94491685

+2 -2
+2 -2
arch/powerpc/platforms/pseries/iommu.c
··· 388 388 389 389 while (pci->phb->dma_window_size * children > 0x80000000ul) 390 390 pci->phb->dma_window_size >>= 1; 391 - pr_debug("No ISA/IDE, window size is 0x%lx\n", 391 + pr_debug("No ISA/IDE, window size is 0x%llx\n", 392 392 pci->phb->dma_window_size); 393 393 pci->phb->dma_window_base_cur = 0; 394 394 ··· 414 414 while (pci->phb->dma_window_size * children > 0x70000000ul) 415 415 pci->phb->dma_window_size >>= 1; 416 416 417 - pr_debug("ISA/IDE, window size is 0x%lx\n", pci->phb->dma_window_size); 417 + pr_debug("ISA/IDE, window size is 0x%llx\n", pci->phb->dma_window_size); 418 418 } 419 419 420 420