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

Commit c2f604dc 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 https://patchwork.kernel.org/patch/10376967/]
Bug: 702147120
Change-Id: Ibb0c32b461821235155c464bfd5c5963db512734
parent c56b26a2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -801,8 +801,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);
	/* TODO(ghartman): ioremap_wc should work here */
	vsoc_dev.kernel_mapped_shm = ioremap_nocache(
			vsoc_dev.shm_phys_start, vsoc_dev.shm_size);