[arm-tegra:for-5.13/phy 10/10] drivers/phy/tegra/xusb-tegra186.c:1444:28: sparse: sparse: incorrect type in return expression (different address spaces)

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra.git for-5.13/phy
head:   fd50990ac3861a6397b03580061f2a5bdf55b0e2
commit: fd50990ac3861a6397b03580061f2a5bdf55b0e2 [10/10] phy: tegra: xusb: Add wake/sleepwalk for Tegra186
config: arm64-randconfig-s032-20210328 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-277-gc089cd2d-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra.git/commit/?id=fd50990ac3861a6397b03580061f2a5bdf55b0e2
        git remote add arm-tegra https://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra.git
        git fetch --no-tags arm-tegra for-5.13/phy
        git checkout fd50990ac3861a6397b03580061f2a5bdf55b0e2
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>


sparse warnings: (new ones prefixed by >>)
>> drivers/phy/tegra/xusb-tegra186.c:1444:28: sparse: sparse: incorrect type in return expression (different address spaces) @@     expected struct tegra_xusb_padctl * @@     got void [noderef] __iomem *ao_regs @@
   drivers/phy/tegra/xusb-tegra186.c:1444:28: sparse:     expected struct tegra_xusb_padctl *
   drivers/phy/tegra/xusb-tegra186.c:1444:28: sparse:     got void [noderef] __iomem *ao_regs

vim +1444 drivers/phy/tegra/xusb-tegra186.c

  1424	
  1425	static struct tegra_xusb_padctl *
  1426	tegra186_xusb_padctl_probe(struct device *dev,
  1427				   const struct tegra_xusb_padctl_soc *soc)
  1428	{
  1429		struct platform_device *pdev = to_platform_device(dev);
  1430		struct tegra186_xusb_padctl *priv;
  1431		struct resource *res;
  1432		int err;
  1433	
  1434		priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
  1435		if (!priv)
  1436			return ERR_PTR(-ENOMEM);
  1437	
  1438		priv->base.dev = dev;
  1439		priv->base.soc = soc;
  1440	
  1441		res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "ao");
  1442		priv->ao_regs = devm_ioremap_resource(dev, res);
  1443		if (IS_ERR(priv->ao_regs))
> 1444			return priv->ao_regs;
  1445	
  1446		err = tegra186_xusb_read_fuse_calibration(priv);
  1447		if (err < 0)
  1448			return ERR_PTR(err);
  1449	
  1450		return &priv->base;
  1451	}
  1452	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux