]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
liquidio: Use %pad printk format for dma_addr_t values
authorHelge Deller <deller@gmx.de>
Thu, 12 Jul 2018 20:36:29 +0000 (22:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jul 2018 20:36:49 +0000 (13:36 -0700)
Use the existing %pad printk format to print dma_addr_t values.
This avoids the following warnings when compiling on the parisc platform:

warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'dma_addr_t {aka unsigned int}' [-Wformat=]

Signed-off-by: Helge Deller <deller@gmx.de>
Acked-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/request_manager.c

index 1f2e75da28f833c2f6973670fa5d113184b606fc..d5d9e47daa4bedfde9e79b13cea25453d2a67a29 100644 (file)
@@ -110,8 +110,8 @@ int octeon_init_instr_queue(struct octeon_device *oct,
 
        memset(iq->request_list, 0, sizeof(*iq->request_list) * num_descs);
 
-       dev_dbg(&oct->pci_dev->dev, "IQ[%d]: base: %p basedma: %llx count: %d\n",
-               iq_no, iq->base_addr, iq->base_addr_dma, iq->max_count);
+       dev_dbg(&oct->pci_dev->dev, "IQ[%d]: base: %p basedma: %pad count: %d\n",
+               iq_no, iq->base_addr, &iq->base_addr_dma, iq->max_count);
 
        iq->txpciq.u64 = txpciq.u64;
        iq->fill_threshold = (u32)conf->db_min;