media: staging: ipu7: Fix compiler warnings on x86
Subsystems (3)
Sakari Ailus
maintainerPATCH 1/1 media: staging: ipu7: Fix compiler warnings on x86
Fix compiler warnings on 32-bit builds where dma_addr_t and phys_addr_t are 32-bit (and no longer long long).
Signed-off-by Sakari Ailus <[email protected]>
---
Hi folks,
I'll squash these to the ipu7 set.
drivers/staging/media/ipu7/ipu7-boot.c | 4 ++-- drivers/staging/media/ipu7/ipu7.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-)
drivers/staging/media/ipu7/ipu7-boot.c +2 -2
@@ -219,8 +219,8 @@ int ipu7_boot_init_boot_config(struct ipu7_bus_device *adev,void *queue_mem_ptr;unsigned int i; -dev_dbg (dev,"boot config queues_nr: %d freq: %u sys_conf: 0x%llx\n" , - num_queues, uc_freq, subsys_config); +dev_dbg (dev,"boot config queues_nr: %d freq: %u sys_conf: 0x%pad\n" , + num_queues, uc_freq, &subsys_config);/* Allocate boot config. */ adev->boot_config_size =sizeof (*cfgs) * num_queues +sizeof (*boot_config);
drivers/staging/media/ipu7/ipu7.c +4 -4
@@ -2323,8 +2323,8 @@ static int ipu7_map_fw_code_region(struct ipu7_bus_device *sys,ipu7_dma_sync_sgtable (sys, sgt); -dev_dbg (dev,"fw code region mapped at 0x%llx entries %d\n" , - sgt->sgl->dma_address, sgt->nents); +dev_dbg (dev,"fw code region mapped at 0x%pad entries %d\n" , + &sgt->sgl->dma_address, sgt->nents); out:kfree (pages);
@@ -2448,8 +2448,8 @@ static int ipu7_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) phys =pci_resource_start (pdev,IPU_PCI_BAR ); pb_phys =pci_resource_start (pdev,IPU_PCI_PBBAR ); -dev_info (dev,"IPU7 PCI BAR0 base %llx BAR2 base %llx\n" , - phys, pb_phys); +dev_info (dev,"IPU7 PCI BAR0 base %pap BAR2 base %pap\n" , + &phys, &pb_phys); isp->base =pcim_iomap_region (pdev,IPU_PCI_BAR ,IPU_NAME );if (IS_ERR (isp->base))
Signature · 1 line
2.39.5