Skip to contentSkip to conversation

mm: cma: Use %pa to avoid truncating the physical address

PATCH In review Gregory Fong 1 participant 2 messages Oct 23, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: cma: Use %pa to avoid truncating the physical address

From: Kevin Cernekee <[email protected]>

[[email protected]: rebased from 3.14 and updated commit message]
---
 mm/cma.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/cma.c +2 -2
index 963bc4a..154efb0 100644
@@ -288,8 +288,8 @@ int __init cma_declare_contiguous(phys_addr_t base,
 	if (ret)
 		goto err;
 
-	pr_info("Reserved %ld MiB at %08lx\n", (unsigned long)size / SZ_1M,
-		(unsigned long)base);
+	pr_info("Reserved %ld MiB at %pa\n", (unsigned long)size / SZ_1M,
+		&base);
 	return 0;
 
 err:
Signature · 1 line
1.9.1
#1 lore raw

Replying to change to use the real linux-mm list on CC (sorry for the noise!)

Quoted 25 lines · Gregory Fong

From: Kevin Cernekee <[email protected]>

[[email protected]: rebased from 3.14 and updated commit message]
---
 mm/cma.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/cma.c +2 -3
index 963bc4a..154efb0 100644
@@ -288,8 +288,8 @@ int __init cma_declare_contiguous(phys_addr_t base,
        if (ret)
                goto err;
 
-       pr_info("Reserved %ld MiB at %08lx\n", (unsigned long)size / SZ_1M,
-               (unsigned long)base);
+       pr_info("Reserved %ld MiB at %pa\n", (unsigned long)size / SZ_1M,
+               &base);
        return 0;
 
 err:
--
Quoted 2 lines

1.9.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>