tree:
git://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp.git
lr/mmp3-hsic-phy
head: 2e517a94639d84fdd929005f5bbc688722670b3e
commit: 2e517a94639d84fdd929005f5bbc688722670b3e [3/3] phy: Add USB HSIC PHY driver for
Marvell MMP3 SoC
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-191-gc51a0382-dirty
git checkout 2e517a94639d84fdd929005f5bbc688722670b3e
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
:::::: branch date: 20 hours ago
:::::: commit date: 20 hours ago
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
> drivers/phy/marvell/phy-mmp3-hsic.c:61:31: sparse: sparse: cast
removes address space '<asn:2>' of expression
#
https://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp.git/co...
git remote add lkundrak-linux-mmp
git://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp.git
git remote update lkundrak-linux-mmp
git checkout 2e517a94639d84fdd929005f5bbc688722670b3e
vim +61 drivers/phy/marvell/phy-mmp3-hsic.c
2e517a94639d84 Lubomir Rintel 2020-03-08 39
2e517a94639d84 Lubomir Rintel 2020-03-08 40 static int mmp3_hsic_phy_probe(struct
platform_device *pdev)
2e517a94639d84 Lubomir Rintel 2020-03-08 41 {
2e517a94639d84 Lubomir Rintel 2020-03-08 42 struct device *dev = &pdev->dev;
2e517a94639d84 Lubomir Rintel 2020-03-08 43 struct phy_provider *provider;
2e517a94639d84 Lubomir Rintel 2020-03-08 44 struct resource *resource;
2e517a94639d84 Lubomir Rintel 2020-03-08 45 void __iomem *base;
2e517a94639d84 Lubomir Rintel 2020-03-08 46 struct phy *phy;
2e517a94639d84 Lubomir Rintel 2020-03-08 47
2e517a94639d84 Lubomir Rintel 2020-03-08 48 resource = platform_get_resource(pdev,
IORESOURCE_MEM, 0);
2e517a94639d84 Lubomir Rintel 2020-03-08 49 base = devm_ioremap_resource(dev,
resource);
2e517a94639d84 Lubomir Rintel 2020-03-08 50 if (IS_ERR(base)) {
2e517a94639d84 Lubomir Rintel 2020-03-08 51 dev_err(dev, "failed to remap PHY
regs\n");
2e517a94639d84 Lubomir Rintel 2020-03-08 52 return PTR_ERR(base);
2e517a94639d84 Lubomir Rintel 2020-03-08 53 }
2e517a94639d84 Lubomir Rintel 2020-03-08 54
2e517a94639d84 Lubomir Rintel 2020-03-08 55 phy = devm_phy_create(dev, NULL,
&mmp3_hsic_phy_ops);
2e517a94639d84 Lubomir Rintel 2020-03-08 56 if (IS_ERR(phy)) {
2e517a94639d84 Lubomir Rintel 2020-03-08 57 dev_err(dev, "failed to create
PHY\n");
2e517a94639d84 Lubomir Rintel 2020-03-08 58 return PTR_ERR(phy);
2e517a94639d84 Lubomir Rintel 2020-03-08 59 }
2e517a94639d84 Lubomir Rintel 2020-03-08 60
2e517a94639d84 Lubomir Rintel 2020-03-08 @61 phy_set_drvdata(phy, (void *)base);
2e517a94639d84 Lubomir Rintel 2020-03-08 62 provider =
devm_of_phy_provider_register(dev, of_phy_simple_xlate);
2e517a94639d84 Lubomir Rintel 2020-03-08 63 if (IS_ERR(provider)) {
2e517a94639d84 Lubomir Rintel 2020-03-08 64 dev_err(dev, "failed to register PHY
provider\n");
2e517a94639d84 Lubomir Rintel 2020-03-08 65 return PTR_ERR(provider);
2e517a94639d84 Lubomir Rintel 2020-03-08 66 }
2e517a94639d84 Lubomir Rintel 2020-03-08 67
2e517a94639d84 Lubomir Rintel 2020-03-08 68 return 0;
2e517a94639d84 Lubomir Rintel 2020-03-08 69 }
2e517a94639d84 Lubomir Rintel 2020-03-08 70
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org