Skip to contentSkip to conversation

media: staging: ipu7: Fix compiler warnings on x86

PATCH New Sakari Ailus 1 participant 1 message Jun 25, 2025

Subsystems (3)
lore
Share & tools
lore

Sakari Ailus

author maintainer
#0 lore raw

PATCH 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).

---
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
index 8e58d00566b4..666cede396f9 100644
@@ -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
index f1ca76d59dc2..4a70d3527cb7 100644
@@ -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