All of lore.kernel.org
 help / color / mirror / Atom feed
* [lkundrak-linux-mmp:lr/mmp3-hsic-phy 3/3] drivers/phy/marvell/phy-mmp3-hsic.c:61:31: sparse: sparse: cast removes address space '<asn:2>' of expression
@ 2020-04-30  2:06 kbuild test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2020-04-30  2:06 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3629 bytes --]

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@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/commit/?id=2e517a94639d84fdd929005f5bbc688722670b3e
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(a)lists.01.org

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

* [lkundrak-linux-mmp:lr/mmp3-hsic-phy 3/3] drivers/phy/marvell/phy-mmp3-hsic.c:61:31: sparse: sparse: cast removes address space '<asn:2>' of expression
@ 2020-04-24 17:20 kbuild test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2020-04-24 17:20 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3697 bytes --]

CC: kbuild-all(a)lists.01.org
TO: Lubomir Rintel <lkundrak@v3.sk>

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@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/commit/?id=2e517a94639d84fdd929005f5bbc688722670b3e
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(a)lists.01.org

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

end of thread, other threads:[~2020-04-30  2:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-30  2:06 [lkundrak-linux-mmp:lr/mmp3-hsic-phy 3/3] drivers/phy/marvell/phy-mmp3-hsic.c:61:31: sparse: sparse: cast removes address space '<asn:2>' of expression kbuild test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-04-24 17:20 kbuild test robot

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.