Commit 8cd4f751 authored by Joerg Roedel's avatar Joerg Roedel

iommu/fsl: Use %pa to print phys_addr_t

Fix compile warnings.
Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent ca4f5587
...@@ -352,7 +352,7 @@ int pamu_config_ppaace(int liodn, phys_addr_t win_addr, phys_addr_t win_size, ...@@ -352,7 +352,7 @@ int pamu_config_ppaace(int liodn, phys_addr_t win_addr, phys_addr_t win_size,
unsigned long fspi; unsigned long fspi;
if ((win_size & (win_size - 1)) || win_size < PAMU_PAGE_SIZE) { if ((win_size & (win_size - 1)) || win_size < PAMU_PAGE_SIZE) {
pr_debug("window size too small or not a power of two %llx\n", win_size); pr_debug("window size too small or not a power of two %pa\n", &win_size);
return -EINVAL; return -EINVAL;
} }
...@@ -1121,8 +1121,7 @@ static int __init fsl_pamu_probe(struct platform_device *pdev) ...@@ -1121,8 +1121,7 @@ static int __init fsl_pamu_probe(struct platform_device *pdev)
spaact = (void *)ppaact + (PAGE_SIZE << get_order(PAACT_SIZE)); spaact = (void *)ppaact + (PAGE_SIZE << get_order(PAACT_SIZE));
omt = (void *)spaact + (PAGE_SIZE << get_order(SPAACT_SIZE)); omt = (void *)spaact + (PAGE_SIZE << get_order(SPAACT_SIZE));
dev_dbg(&pdev->dev, "ppaact virt=%p phys=0x%llx\n", ppaact, dev_dbg(&pdev->dev, "ppaact virt=%p phys=%pa\n", ppaact, &ppaact_phys);
(unsigned long long) ppaact_phys);
/* Check to see if we need to implement the work-around on this SOC */ /* Check to see if we need to implement the work-around on this SOC */
...@@ -1138,7 +1137,7 @@ static int __init fsl_pamu_probe(struct platform_device *pdev) ...@@ -1138,7 +1137,7 @@ static int __init fsl_pamu_probe(struct platform_device *pdev)
if (csd_port_id) { if (csd_port_id) {
dev_dbg(&pdev->dev, "creating coherency subdomain at address " dev_dbg(&pdev->dev, "creating coherency subdomain at address "
"0x%llx, size %zu, port id 0x%08x", ppaact_phys, "%pa, size %zu, port id 0x%08x", &ppaact_phys,
mem_size, csd_port_id); mem_size, csd_port_id);
ret = create_csd(ppaact_phys, mem_size, csd_port_id); ret = create_csd(ppaact_phys, mem_size, csd_port_id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment