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: Alistair Strachan <astrachan@google.com> [sent upstream via staging https://patchwork.kernel.org/patch/10376967/] Bug: 702147120 Change-Id: Ibb0c32b461821235155c464bfd5c5963db512734
This commit is contained in:
parent
c4fd9a102b
commit
935b28af56
1 changed files with 2 additions and 2 deletions
|
@ -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_phys_start = pci_resource_start(pdev, SHARED_MEMORY_BAR);
|
||||||
vsoc_dev.shm_size = pci_resource_len(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",
|
dev_info(&pdev->dev, "shared memory @ DMA %pa size=0x%zx\n",
|
||||||
(void *)vsoc_dev.shm_phys_start, vsoc_dev.shm_size);
|
&vsoc_dev.shm_phys_start, vsoc_dev.shm_size);
|
||||||
vsoc_dev.kernel_mapped_shm = pci_iomap_wc(pdev, SHARED_MEMORY_BAR, 0);
|
vsoc_dev.kernel_mapped_shm = pci_iomap_wc(pdev, SHARED_MEMORY_BAR, 0);
|
||||||
if (!vsoc_dev.kernel_mapped_shm) {
|
if (!vsoc_dev.kernel_mapped_shm) {
|
||||||
dev_err(&vsoc_dev.dev->dev, "cannot iomap region\n");
|
dev_err(&vsoc_dev.dev->dev, "cannot iomap region\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue