From 4c1eaa2344fb26bb5e936fb4d8ee307343ea0089 Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Wed, 1 Apr 2015 09:12:19 +0200 Subject: drivers/block/pmem: Fix 32-bit build warning in pmem_alloc() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Cc: Andy Lutomirski Cc: Boaz Harrosh Cc: Borislav Petkov Cc: Christoph Hellwig Cc: Dan Williams Cc: H. Peter Anvin Cc: Jens Axboe Cc: Jens Axboe Cc: Keith Busch Cc: Linus Torvalds Cc: Matthew Wilcox Cc: Ross Zwisler Cc: Thomas Gleixner Cc: linux-nvdimm@ml01.01.org Signed-off-by: Ingo Molnar --- drivers/block/pmem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'drivers/block') 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; } -- cgit v1.2.3