Re: [PATCH v6 1/3] phy: fsl-imx8mq-usb: add tca function driver for imx95

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Xu,

kernel test robot noticed the following build warnings:

[auto build test WARNING on shawnguo/for-next]
[also build test WARNING on linus/master v6.12-rc2 next-20241008]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Xu-Yang/arm64-dts-imx95-add-usb3-related-nodes/20241008-152345
base:   https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git for-next
patch link:    https://lore.kernel.org/r/20241008062744.2211539-1-xu.yang_2%40nxp.com
patch subject: [PATCH v6 1/3] phy: fsl-imx8mq-usb: add tca function driver for imx95
config: arm-randconfig-r121-20241009 (https://download.01.org/0day-ci/archive/20241009/202410091742.HgStY96T-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.1.0
reproduce: (https://download.01.org/0day-ci/archive/20241009/202410091742.HgStY96T-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410091742.HgStY96T-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> drivers/phy/freescale/phy-fsl-imx8mq-usb.c:264:24: sparse: sparse: Using plain integer as NULL pointer
>> drivers/phy/freescale/phy-fsl-imx8mq-usb.c:272:27: sparse: sparse: incorrect type in return expression (different address spaces) @@     expected struct tca_blk * @@     got void [noderef] __iomem *base @@
   drivers/phy/freescale/phy-fsl-imx8mq-usb.c:272:27: sparse:     expected struct tca_blk *
   drivers/phy/freescale/phy-fsl-imx8mq-usb.c:272:27: sparse:     got void [noderef] __iomem *base
   drivers/phy/freescale/phy-fsl-imx8mq-usb.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/umh.h, include/linux/kmod.h, ...):
   include/linux/page-flags.h:235:46: sparse: sparse: self-comparison always evaluates to false
   include/linux/page-flags.h:235:46: sparse: sparse: self-comparison always evaluates to false

vim +264 drivers/phy/freescale/phy-fsl-imx8mq-usb.c

   254	
   255	static struct tca_blk *imx95_usb_phy_get_tca(struct platform_device *pdev,
   256					struct imx8mq_usb_phy *imx_phy)
   257	{
   258		struct device *dev = &pdev->dev;
   259		struct resource *res;
   260		struct tca_blk *tca;
   261	
   262		res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
   263		if (!res)
 > 264			return 0;
   265	
   266		tca = devm_kzalloc(dev, sizeof(*tca), GFP_KERNEL);
   267		if (!tca)
   268			return ERR_PTR(-ENOMEM);
   269	
   270		tca->base = devm_ioremap_resource(&pdev->dev, res);
   271		if (IS_ERR(tca->base))
 > 272			return tca->base;
   273	
   274		mutex_init(&tca->mutex);
   275	
   276		tca->orientation = TYPEC_ORIENTATION_NORMAL;
   277		tca->sw = tca_blk_get_typec_switch(pdev, imx_phy);
   278	
   279		return tca;
   280	}
   281	

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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux