liquidio: Use %pad printk format for dma_addr_t values
Subsystems (3)
PATCH 1/1 liquidio: Use %pad printk format for dma_addr_t values
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=]
drivers/net/ethernet/cavium/liquidio/request_manager.c +2 -2
@@ -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;
Quoted 12 lines · Helge Deller
Use the existing %pad printk format to print
dma_addr_tvalues. 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 <[email protected]>drivers/net/ethernet/cavium/liquidio/request_manager.c +0
-0
drivers/net/ethernet/cavium/liquidio/request_manager.c int octeon_init_instr_queue(struct octeon_device *oct, · line 117
Quoted 10 lines
drivers/net/ethernet/cavium/liquidio/request_manager.c +2
-2@@ -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;
From: Helge Deller <[email protected]>
Date: Thu, 12 Jul 2018 22:36:29 +0200
Quoted 6 lines
Use the existing %pad printk format to print
dma_addr_tvalues. 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 <[email protected]>
Applied.