* drivers/phy/marvell/phy-mmp3-hsic.c:61:31: sparse: sparse: cast removes address space '__iomem' of expression
@ 2021-11-12 7:16 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-11-12 7:16 UTC (permalink / raw)
To: Lubomir Rintel; +Cc: kbuild-all, linux-kernel, Vinod Koul
[-- Attachment #1: Type: text/plain, Size: 2932 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5833291ab6de9c3e2374336b51c814e515e8f3a5
commit: 0347c69214f4b600f40c0dc58945dc2798e2b3d9 phy: Add USB HSIC PHY driver for Marvell MMP3 SoC
date: 1 year ago
config: riscv-randconfig-s032-20211109 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 11.2.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.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0347c69214f4b600f40c0dc58945dc2798e2b3d9
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 0347c69214f4b600f40c0dc58945dc2798e2b3d9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/kernel/ drivers/clk/qcom/ drivers/clocksource/ drivers/firmware/arm_scmi/ drivers/firmware/efi/test/ drivers/mmc/host/ drivers/mtd/nand/onenand/ drivers/mtd/nand/raw/ drivers/pci/endpoint/functions/ drivers/phy/marvell/ drivers/pwm/ drivers/soc/bcm/bcm63xx/ drivers/staging/vc04_services/ drivers/uio/ drivers/usb/gadget/function/ drivers/video/fbdev/ fs/ kernel/ lib/
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/marvell/phy-mmp3-hsic.c:61:31: sparse: sparse: cast removes address space '__iomem' of expression
vim +/__iomem +61 drivers/phy/marvell/phy-mmp3-hsic.c
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, (void *)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@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34071 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* drivers/phy/marvell/phy-mmp3-hsic.c:61:31: sparse: sparse: cast removes address space '__iomem' of expression
@ 2023-12-06 7:27 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2023-12-06 7:27 UTC (permalink / raw)
To: Lubomir Rintel; +Cc: oe-kbuild-all, linux-kernel, Vinod Koul
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: bee0e7762ad2c6025b9f5245c040fcc36ef2bde8
commit: 0347c69214f4b600f40c0dc58945dc2798e2b3d9 phy: Add USB HSIC PHY driver for Marvell MMP3 SoC
date: 3 years, 1 month ago
config: openrisc-randconfig-r131-20231102 (https://download.01.org/0day-ci/archive/20231206/202312061540.CHjD764h-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231206/202312061540.CHjD764h-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312061540.CHjD764h-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/phy/marvell/phy-mmp3-hsic.c:61:31: sparse: sparse: cast removes address space '__iomem' of expression
drivers/phy/marvell/phy-mmp3-hsic.c: note: in included file (through arch/openrisc/include/asm/io.h, include/linux/io.h):
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:299:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:299:22: sparse: got restricted __le32 [usertype]
vim +/__iomem +61 drivers/phy/marvell/phy-mmp3-hsic.c
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, (void *)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
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread
* drivers/phy/marvell/phy-mmp3-hsic.c:61:31: sparse: sparse: cast removes address space '__iomem' of expression
@ 2023-12-09 6:22 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2023-12-09 6:22 UTC (permalink / raw)
To: Lubomir Rintel; +Cc: oe-kbuild-all, linux-kernel, Vinod Koul
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f2e8a57ee9036c7d5443382b6c3c09b51a92ec7e
commit: 0347c69214f4b600f40c0dc58945dc2798e2b3d9 phy: Add USB HSIC PHY driver for Marvell MMP3 SoC
date: 3 years, 1 month ago
config: openrisc-randconfig-r131-20231102 (https://download.01.org/0day-ci/archive/20231209/202312091417.wmY8IiVm-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231209/202312091417.wmY8IiVm-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312091417.wmY8IiVm-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/phy/marvell/phy-mmp3-hsic.c:61:31: sparse: sparse: cast removes address space '__iomem' of expression
drivers/phy/marvell/phy-mmp3-hsic.c: note: in included file (through arch/openrisc/include/asm/io.h, include/linux/io.h):
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:299:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:299:22: sparse: got restricted __le32 [usertype]
vim +/__iomem +61 drivers/phy/marvell/phy-mmp3-hsic.c
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, (void *)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
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-12-09 6:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-06 7:27 drivers/phy/marvell/phy-mmp3-hsic.c:61:31: sparse: sparse: cast removes address space '__iomem' of expression kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2023-12-09 6:22 kernel test robot
2021-11-12 7:16 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