All of lore.kernel.org
 help / color / mirror / Atom feed
* [lkundrak-linux-mmp:lr/ariel 21/60] drivers/phy/marvell/phy-mmp3-hsic.c:18:45: sparse: sparse: incorrect type in initializer (different address spaces)
@ 2020-04-22 20:21 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-04-22 20:21 UTC (permalink / raw)
  To: kbuild-all

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

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp.git lr/ariel
head:   483c7451896cff86b5c00af0e8ead82fcf47fcf8
commit: 102decb2e2ef26cf260384a2f1c8a49595bec168 [21/60] 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 102decb2e2ef26cf260384a2f1c8a49595bec168
        make ARCH=x86_64 allmodconfig
        make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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:18:45: sparse: sparse: incorrect type in initializer (different address spaces) @@    expected void [noderef] <asn:2> *base @@    got n:2> *base @@
   drivers/phy/marvell/phy-mmp3-hsic.c:18:45: sparse:    expected void [noderef] <asn:2> *base
   drivers/phy/marvell/phy-mmp3-hsic.c:18:45: sparse:    got void *
>> drivers/phy/marvell/phy-mmp3-hsic.c:61:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@    expected void *data @@    got void [noderef] <asn:2> *[assivoid *data @@
   drivers/phy/marvell/phy-mmp3-hsic.c:61:30: sparse:    expected void *data
   drivers/phy/marvell/phy-mmp3-hsic.c:61:30: sparse:    got void [noderef] <asn:2> *[assigned] base

vim +18 drivers/phy/marvell/phy-mmp3-hsic.c

    15	
    16	static int mmp3_hsic_phy_init(struct phy *phy)
    17	{
  > 18		void __iomem *base = phy_get_drvdata(phy);
    19		u32 hsic_ctrl;
    20	
    21		hsic_ctrl = readl_relaxed(base + HSIC_CTRL);
    22		hsic_ctrl |= HSIC_ENABLE;
    23		hsic_ctrl |= PLL_BYPASS;
    24		writel_relaxed(hsic_ctrl, base + HSIC_CTRL);
    25	
    26		return 0;
    27	}
    28	
    29	static const struct phy_ops mmp3_hsic_phy_ops = {
    30		.init		= mmp3_hsic_phy_init,
    31		.owner		= THIS_MODULE,
    32	};
    33	
    34	static const struct of_device_id mmp3_hsic_phy_of_match[] = {
    35		{ .compatible = "marvell,mmp3-hsic-phy", },
    36		{ },
    37	};
    38	MODULE_DEVICE_TABLE(of, mmp3_hsic_phy_of_match);
    39	
    40	static int mmp3_hsic_phy_probe(struct platform_device *pdev)
    41	{
    42		struct device *dev = &pdev->dev;
    43		struct phy_provider *provider;
    44		struct resource *resource;
    45		void __iomem *base;
    46		struct phy *phy;
    47	
    48		resource = platform_get_resource(pdev, IORESOURCE_MEM, 0);
    49		base = devm_ioremap_resource(dev, resource);
    50		if (IS_ERR(base)) {
    51			dev_err(dev, "failed to remap PHY regs\n");
    52			return PTR_ERR(base);
    53		}
    54	
    55		phy = devm_phy_create(dev, NULL, &mmp3_hsic_phy_ops);
    56		if (IS_ERR(phy)) {
    57			dev_err(dev, "failed to create PHY\n");
    58			return PTR_ERR(phy);
    59		}
    60	
  > 61		phy_set_drvdata(phy, base);
    62		provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate);
    63		if (IS_ERR(provider)) {
    64			dev_err(dev, "failed to register PHY provider\n");
    65			return PTR_ERR(provider);
    66		}
    67	
    68		return 0;
    69	}
    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] only message in thread

only message in thread, other threads:[~2020-04-22 20:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-22 20:21 [lkundrak-linux-mmp:lr/ariel 21/60] drivers/phy/marvell/phy-mmp3-hsic.c:18:45: sparse: sparse: incorrect type in initializer (different address spaces) 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.