All of lore.kernel.org
 help / color / mirror / Atom feed
* [krzk-github:wip/qcom-rt 85/380] drivers/pci/controller/dwc/pcie-designware.c:733:27: sparse: sparse: incorrect type in assignment (different address spaces)
@ 2023-01-19 15:19 kernel test robot
  2023-01-20 10:22 ` Serge Semin
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2023-01-19 15:19 UTC (permalink / raw)
  To: Serge Semin; +Cc: oe-kbuild-all, Dmitry Baryshkov, Manivannan Sadhasivam

tree:   https://github.com/krzk/linux wip/qcom-rt
head:   6880445158dd6376c96b5898fa41a7a3f8898b7d
commit: 3ffee7408c93dd4e2f70e400b6327bae3ec2fc9a [85/380] PCI: dwc: Add DW eDMA engine support
config: i386-randconfig-s001 (https://download.01.org/0day-ci/archive/20230119/202301192348.JYHqRRcu-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.4-39-gce1a6720-dirty
        # https://github.com/krzk/linux/commit/3ffee7408c93dd4e2f70e400b6327bae3ec2fc9a
        git remote add krzk-github https://github.com/krzk/linux
        git fetch --no-tags krzk-github wip/qcom-rt
        git checkout 3ffee7408c93dd4e2f70e400b6327bae3ec2fc9a
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 olddefconfig
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/pci/controller/dwc/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>

sparse warnings: (new ones prefixed by >>)
>> drivers/pci/controller/dwc/pcie-designware.c:733:27: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void [noderef] __iomem *vaddr @@     got void * @@
   drivers/pci/controller/dwc/pcie-designware.c:733:27: sparse:     expected void [noderef] __iomem *vaddr
   drivers/pci/controller/dwc/pcie-designware.c:733:27: sparse:     got void *
   drivers/pci/controller/dwc/pcie-designware.c:744:27: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void [noderef] __iomem *vaddr @@     got void * @@
   drivers/pci/controller/dwc/pcie-designware.c:744:27: sparse:     expected void [noderef] __iomem *vaddr
   drivers/pci/controller/dwc/pcie-designware.c:744:27: sparse:     got void *

vim +733 drivers/pci/controller/dwc/pcie-designware.c

   723	
   724	static int dw_pcie_edma_ll_alloc(struct dw_pcie *pci)
   725	{
   726		struct dw_edma_region *ll;
   727		dma_addr_t paddr;
   728		int i;
   729	
   730		for (i = 0; i < pci->edma.ll_wr_cnt; i++) {
   731			ll = &pci->edma.ll_region_wr[i];
   732			ll->sz = DMA_LLP_MEM_SIZE;
 > 733			ll->vaddr = dmam_alloc_coherent(pci->dev, ll->sz,
   734							&paddr, GFP_KERNEL);
   735			if (!ll->vaddr)
   736				return -ENOMEM;
   737	
   738			ll->paddr = paddr;
   739		}
   740	
   741		for (i = 0; i < pci->edma.ll_rd_cnt; i++) {
   742			ll = &pci->edma.ll_region_rd[i];
   743			ll->sz = DMA_LLP_MEM_SIZE;
   744			ll->vaddr = dmam_alloc_coherent(pci->dev, ll->sz,
   745							&paddr, GFP_KERNEL);
   746			if (!ll->vaddr)
   747				return -ENOMEM;
   748	
   749			ll->paddr = paddr;
   750		}
   751	
   752		return 0;
   753	}
   754	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [krzk-github:wip/qcom-rt 85/380] drivers/pci/controller/dwc/pcie-designware.c:733:27: sparse: sparse: incorrect type in assignment (different address spaces)
  2023-01-19 15:19 [krzk-github:wip/qcom-rt 85/380] drivers/pci/controller/dwc/pcie-designware.c:733:27: sparse: sparse: incorrect type in assignment (different address spaces) kernel test robot
@ 2023-01-20 10:22 ` Serge Semin
  0 siblings, 0 replies; 2+ messages in thread
From: Serge Semin @ 2023-01-20 10:22 UTC (permalink / raw)
  To: kernel test robot; +Cc: oe-kbuild-all, Dmitry Baryshkov, Manivannan Sadhasivam

On Thu, Jan 19, 2023 at 11:19:46PM +0800, kernel test robot wrote:
> tree:   https://github.com/krzk/linux wip/qcom-rt
> head:   6880445158dd6376c96b5898fa41a7a3f8898b7d
> commit: 3ffee7408c93dd4e2f70e400b6327bae3ec2fc9a [85/380] PCI: dwc: Add DW eDMA engine support
> config: i386-randconfig-s001 (https://download.01.org/0day-ci/archive/20230119/202301192348.JYHqRRcu-lkp@intel.com/config)
> compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
> reproduce:
>         # apt-get install sparse
>         # sparse version: v0.6.4-39-gce1a6720-dirty
>         # https://github.com/krzk/linux/commit/3ffee7408c93dd4e2f70e400b6327bae3ec2fc9a
>         git remote add krzk-github https://github.com/krzk/linux
>         git fetch --no-tags krzk-github wip/qcom-rt
>         git checkout 3ffee7408c93dd4e2f70e400b6327bae3ec2fc9a
>         # save the config file
>         mkdir build_dir && cp config build_dir/.config
>         make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 olddefconfig
>         make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/pci/controller/dwc/
> 
> If you fix the issue, kindly add following tag where applicable
> | Reported-by: kernel test robot <lkp@intel.com>
> 
> sparse warnings: (new ones prefixed by >>)
> >> drivers/pci/controller/dwc/pcie-designware.c:733:27: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void [noderef] __iomem *vaddr @@     got void * @@
>    drivers/pci/controller/dwc/pcie-designware.c:733:27: sparse:     expected void [noderef] __iomem *vaddr
>    drivers/pci/controller/dwc/pcie-designware.c:733:27: sparse:     got void *
>    drivers/pci/controller/dwc/pcie-designware.c:744:27: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void [noderef] __iomem *vaddr @@     got void * @@
>    drivers/pci/controller/dwc/pcie-designware.c:744:27: sparse:     expected void [noderef] __iomem *vaddr
>    drivers/pci/controller/dwc/pcie-designware.c:744:27: sparse:     got void *

Fixed in v9 of the series:
https://lore.kernel.org/linux-pci/20230113171409.30470-24-Sergey.Semin@baikalelectronics.ru/
Please update your WIP branch.

-Serge(y)

> 
> vim +733 drivers/pci/controller/dwc/pcie-designware.c
> 
>    723	
>    724	static int dw_pcie_edma_ll_alloc(struct dw_pcie *pci)
>    725	{
>    726		struct dw_edma_region *ll;
>    727		dma_addr_t paddr;
>    728		int i;
>    729	
>    730		for (i = 0; i < pci->edma.ll_wr_cnt; i++) {
>    731			ll = &pci->edma.ll_region_wr[i];
>    732			ll->sz = DMA_LLP_MEM_SIZE;
>  > 733			ll->vaddr = dmam_alloc_coherent(pci->dev, ll->sz,
>    734							&paddr, GFP_KERNEL);
>    735			if (!ll->vaddr)
>    736				return -ENOMEM;
>    737	
>    738			ll->paddr = paddr;
>    739		}
>    740	
>    741		for (i = 0; i < pci->edma.ll_rd_cnt; i++) {
>    742			ll = &pci->edma.ll_region_rd[i];
>    743			ll->sz = DMA_LLP_MEM_SIZE;
>    744			ll->vaddr = dmam_alloc_coherent(pci->dev, ll->sz,
>    745							&paddr, GFP_KERNEL);
>    746			if (!ll->vaddr)
>    747				return -ENOMEM;
>    748	
>    749			ll->paddr = paddr;
>    750		}
>    751	
>    752		return 0;
>    753	}
>    754	
> 
> -- 
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-20 10:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-19 15:19 [krzk-github:wip/qcom-rt 85/380] drivers/pci/controller/dwc/pcie-designware.c:733:27: sparse: sparse: incorrect type in assignment (different address spaces) kernel test robot
2023-01-20 10:22 ` Serge Semin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.