]> Git Repo - J-linux.git/commitdiff
mhi: pci_generic: Fix implicit conversion warning
authorLoic Poulain <[email protected]>
Wed, 2 Dec 2020 08:12:30 +0000 (09:12 +0100)
committerManivannan Sadhasivam <[email protected]>
Wed, 2 Dec 2020 08:59:17 +0000 (14:29 +0530)
Fix the following warning with explicit cast:

warning: implicit conversion from 'unsigned long long' to
'dma_addr_t' (aka 'unsigned int')
mhi_cntrl->iova_stop = DMA_BIT_MASK(info->dma_data_width);

Fixes: 855a70c12021 ("bus: mhi: Add MHI PCI support for WWAN modems")
Signed-off-by: Loic Poulain <[email protected]>
Reported-by: kernel test robot <[email protected]>
Reviewed-by: Nathan Chancellor <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Signed-off-by: Manivannan Sadhasivam <[email protected]>
drivers/bus/mhi/pci_generic.c

index e3df838c3c80e21d9b9df4fa770efeb98281a3ef..f5bee76ea0618ef02277f736f9989b188afd4d29 100644 (file)
@@ -273,7 +273,7 @@ static int mhi_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
        mhi_cntrl_config = info->config;
        mhi_cntrl->cntrl_dev = &pdev->dev;
        mhi_cntrl->iova_start = 0;
-       mhi_cntrl->iova_stop = DMA_BIT_MASK(info->dma_data_width);
+       mhi_cntrl->iova_stop = (dma_addr_t)DMA_BIT_MASK(info->dma_data_width);
        mhi_cntrl->fw_image = info->fw;
        mhi_cntrl->edl_image = info->edl;
 
This page took 0.052671 seconds and 4 git commands to generate.