* [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)
@ 2021-03-29 2:59 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-29 2:59 UTC (permalink / raw)
To: JC Kuo; +Cc: kbuild-all, linux-tegra, Thierry Reding
[-- Attachment #1: Type: text/plain, Size: 2725 bytes --]
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@intel.com>
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@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 46627 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-29 3:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-29 2:59 [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) kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).