Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac505038 authored by Alistair Strachan's avatar Alistair Strachan
Browse files

FROMLIST: staging: vsoc: Fix a i386-randconfig warning.



Fix "warning: cast to pointer from integer of different size" when
printing the region shm physical address. Use the %pa conversion
specifier and pass the resource by reference.

Signed-off-by: default avatarAlistair Strachan <astrachan@google.com>
[sent upstream via staging TODO]
Bug: 702147120
Change-Id: Ibb0c32b461821235155c464bfd5c5963db512734
parent a69d100f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -800,8 +800,8 @@ static int vsoc_probe_device(struct pci_dev *pdev,
	vsoc_dev.shm_phys_start = pci_resource_start(pdev, SHARED_MEMORY_BAR);
	vsoc_dev.shm_size = pci_resource_len(pdev, SHARED_MEMORY_BAR);

	dev_info(&pdev->dev, "shared memory @ DMA %p size=0x%zx\n",
		 (void *)vsoc_dev.shm_phys_start, vsoc_dev.shm_size);
	dev_info(&pdev->dev, "shared memory @ DMA %pa size=0x%zx\n",
		 &vsoc_dev.shm_phys_start, vsoc_dev.shm_size);
	vsoc_dev.kernel_mapped_shm = pci_iomap_wc(pdev, SHARED_MEMORY_BAR, 0);
	if (!vsoc_dev.kernel_mapped_shm) {
		dev_err(&vsoc_dev.dev->dev, "cannot iomap region\n");