diff options
author | Ingo Molnar <[email protected]> | 2015-04-01 09:12:19 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2015-04-01 17:03:57 +0200 |
commit | 4c1eaa2344fb26bb5e936fb4d8ee307343ea0089 (patch) | |
tree | 17eae1ec30e69ba101c72e1d7c27f45c7a87928a | |
parent | 9e853f2313e5eb163cb1ea461b23c2332cf6438a (diff) |
drivers/block/pmem: Fix 32-bit build warning in pmem_alloc()
Fix:
drivers/block/pmem.c: In function ‘pmem_alloc’:
drivers/block/pmem.c:138:7: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘phys_addr_t’ [-Wformat=]
By using the proper %pa format specifier we use for 'phys_addr_t' arguments.
Cc: Andrew Morton <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Boaz Harrosh <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Keith Busch <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Ross Zwisler <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r-- | drivers/block/pmem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/pmem.c b/drivers/block/pmem.c index 988f3846dc3e..eabf4a8d0085 100644 --- a/drivers/block/pmem.c +++ b/drivers/block/pmem.c @@ -134,8 +134,7 @@ static struct pmem_device *pmem_alloc(struct device *dev, struct resource *res) err = -EINVAL; if (!request_mem_region(pmem->phys_addr, pmem->size, "pmem")) { - dev_warn(dev, "could not reserve region [0x%llx:0x%zx]\n", - pmem->phys_addr, pmem->size); + dev_warn(dev, "could not reserve region [0x%pa:0x%zx]\n", &pmem->phys_addr, pmem->size); goto out_free_dev; } |