drivers/irqchip/irq-sg2042-msi.c:101:40: sparse: sparse: incorrect type in argument 2 (different address spaces)
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/drivers head: e96b93a97c90181627cef6e70a0dbc8dbdae4adc commit: e96b93a97c90181627cef6e70a0dbc8dbdae4adc [14/14] irqchip/sg2042-msi: Add the Sophgo SG2044 MSI interrupt controller config: arm64-randconfig-r123-20250421 (https://download.01.org/0day-ci/archive/20250421/[email protected]/config) compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8) reproduce: (https://download.01.org/0day-ci/archive/20250421/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
sparse warnings: (new ones prefixed by >>)
drivers/irqchip/irq-sg2042-msi.c:101:20: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/irqchip/irq-sg2042-msi.c:101:40: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@
drivers/irqchip/irq-sg2042-msi.c:101:40: sparse: expected void volatile [noderef] __iomem *addr
drivers/irqchip/irq-sg2042-msi.c:101:40: sparse: got unsigned int [usertype] *
vim +101 drivers/irqchip/irq-sg2042-msi.c
96
97 static void sg2044_msi_irq_ack(struct irq_data *d)
98 {
99 struct sg204x_msi_chipdata *data = irq_data_get_irq_chip_data(d);
100
> 101 writel(0, (u32 *)data->reg_clr + d->hwirq); 102 irq_chip_ack_parent(d);
103 }
104
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki