[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202501032208.DbyYB3ff-lkp@intel.com>
Date: Fri, 3 Jan 2025 22:43:28 +0800
From: kernel test robot <lkp@...el.com>
To: Palmer Dabbelt <palmer@...ive.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Bjorn Helgaas <helgaas@...nel.org>, Michal Simek <monstr@...str.eu>
Subject: drivers/pci/controller/pcie-mediatek.c:404:40: sparse: sparse:
incorrect type in argument 1 (different address spaces)
Hi Palmer,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0bc21e701a6ffacfdde7f04f87d664d82e8a13bf
commit: 191d6f91f283dfb007499bb8529d54c3ac434bd7 PCI: Remove PCI_MSI_IRQ_DOMAIN architecture whitelist
date: 5 years ago
config: m68k-randconfig-r121-20241230 (https://download.01.org/0day-ci/archive/20250103/202501032208.DbyYB3ff-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20250103/202501032208.DbyYB3ff-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501032208.DbyYB3ff-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/pci/controller/pcie-mediatek.c:404:40: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *address @@ got void [noderef] __iomem * @@
drivers/pci/controller/pcie-mediatek.c:404:40: sparse: expected void *address
drivers/pci/controller/pcie-mediatek.c:404:40: sparse: got void [noderef] __iomem *
drivers/pci/controller/pcie-mediatek.c:527:44: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *address @@ got void [noderef] __iomem * @@
drivers/pci/controller/pcie-mediatek.c:527:44: sparse: expected void *address
drivers/pci/controller/pcie-mediatek.c:527:44: sparse: got void [noderef] __iomem *
drivers/pci/controller/pcie-mediatek.c: note: in included file (through arch/m68k/include/asm/io.h, include/linux/io.h, include/linux/iopoll.h):
arch/m68k/include/asm/io_no.h:77:24: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:77:24: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:77:24: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:94:17: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile @@ got restricted __le32 [usertype] @@
arch/m68k/include/asm/io_no.h:96:17: sparse: expected unsigned int volatile
arch/m68k/include/asm/io_no.h:96:17: sparse: got restricted __le32 [usertype]
arch/m68k/include/asm/io_no.h:94:17: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile @@ got restricted __le32 [usertype] @@
arch/m68k/include/asm/io_no.h:96:17: sparse: expected unsigned int volatile
arch/m68k/include/asm/io_no.h:96:17: sparse: got restricted __le32 [usertype]
arch/m68k/include/asm/io_no.h:94:17: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile @@ got restricted __le32 [usertype] @@
arch/m68k/include/asm/io_no.h:96:17: sparse: expected unsigned int volatile
arch/m68k/include/asm/io_no.h:96:17: sparse: got restricted __le32 [usertype]
arch/m68k/include/asm/io_no.h:77:24: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:94:17: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile @@ got restricted __le32 [usertype] @@
arch/m68k/include/asm/io_no.h:96:17: sparse: expected unsigned int volatile
arch/m68k/include/asm/io_no.h:96:17: sparse: got restricted __le32 [usertype]
arch/m68k/include/asm/io_no.h:77:24: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
arch/m68k/include/asm/io_no.h:94:17: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile @@ got restricted __le32 [usertype] @@
arch/m68k/include/asm/io_no.h:96:17: sparse: expected unsigned int volatile
arch/m68k/include/asm/io_no.h:96:17: sparse: got restricted __le32 [usertype]
arch/m68k/include/asm/io_no.h:94:17: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: cast removes address space '__iomem' of expression
arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile @@ got restricted __le32 [usertype] @@
arch/m68k/include/asm/io_no.h:96:17: sparse: expected unsigned int volatile
vim +404 drivers/pci/controller/pcie-mediatek.c
b099631df160ec drivers/pci/host/pcie-mediatek.c Ryder Lee 2017-08-10 397
42fe2f91b4ebc0 drivers/pci/host/pcie-mediatek.c Honghui Zhang 2018-05-04 398 static void mtk_compose_msi_msg(struct irq_data *data, struct msi_msg *msg)
43e6409db64dda drivers/pci/host/pcie-mediatek.c Honghui Zhang 2017-08-14 399 {
42fe2f91b4ebc0 drivers/pci/host/pcie-mediatek.c Honghui Zhang 2018-05-04 400 struct mtk_pcie_port *port = irq_data_get_irq_chip_data(data);
42fe2f91b4ebc0 drivers/pci/host/pcie-mediatek.c Honghui Zhang 2018-05-04 401 phys_addr_t addr;
43e6409db64dda drivers/pci/host/pcie-mediatek.c Honghui Zhang 2017-08-14 402
42fe2f91b4ebc0 drivers/pci/host/pcie-mediatek.c Honghui Zhang 2018-05-04 403 /* MT2712/MT7622 only support 32-bit MSI addresses */
42fe2f91b4ebc0 drivers/pci/host/pcie-mediatek.c Honghui Zhang 2018-05-04 @404 addr = virt_to_phys(port->base + PCIE_MSI_VECTOR);
42fe2f91b4ebc0 drivers/pci/host/pcie-mediatek.c Honghui Zhang 2018-05-04 405 msg->address_hi = 0;
42fe2f91b4ebc0 drivers/pci/host/pcie-mediatek.c Honghui Zhang 2018-05-04 406 msg->address_lo = lower_32_bits(addr);
42fe2f91b4ebc0 drivers/pci/host/pcie-mediatek.c Honghui Zhang 2018-05-04 407
42fe2f91b4ebc0 drivers/pci/host/pcie-mediatek.c Honghui Zhang 2018-05-04 408 msg->data = data->hwirq;
43e6409db64dda drivers/pci/host/pcie-mediatek.c Honghui Zhang 2017-08-14 409
42fe2f91b4ebc0 drivers/pci/host/pcie-mediatek.c Honghui Zhang 2018-05-04 410 dev_dbg(port->pcie->dev, "msi#%d address_hi %#x address_lo %#x\n",
42fe2f91b4ebc0 drivers/pci/host/pcie-mediatek.c Honghui Zhang 2018-05-04 411 (int)data->hwirq, msg->address_hi, msg->address_lo);
43e6409db64dda drivers/pci/host/pcie-mediatek.c Honghui Zhang 2017-08-14 412 }
43e6409db64dda drivers/pci/host/pcie-mediatek.c Honghui Zhang 2017-08-14 413
:::::: The code at line 404 was first introduced by commit
:::::: 42fe2f91b4ebc07c815fb334ea1262e6dc23bf77 PCI: mediatek: Implement chained IRQ handling setup
:::::: TO: Honghui Zhang <honghui.zhang@...iatek.com>
:::::: CC: Lorenzo Pieralisi <lorenzo.pieralisi@....com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists