]> Git Repo - linux.git/commitdiff
drivers/block/pmem: Fix 32-bit build warning in pmem_alloc()
authorIngo Molnar <[email protected]>
Wed, 1 Apr 2015 07:12:19 +0000 (09:12 +0200)
committerIngo Molnar <[email protected]>
Wed, 1 Apr 2015 15:03:57 +0000 (17:03 +0200)
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]>
drivers/block/pmem.c

index 988f3846dc3e1383d4211655b0daaa3442010e8a..eabf4a8d00855ef06c2c2e9cd4178954903fe47c 100644 (file)
@@ -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;
        }
 
This page took 0.055119 seconds and 4 git commands to generate.