[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202501070924.pFM8uHGJ-lkp@intel.com>
Date: Tue, 7 Jan 2025 09:57:34 +0800
From: kernel test robot <lkp@...el.com>
To: Michael Ellerman <mpe@...erman.id.au>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: arch/powerpc/platforms/44x/warp.c:316:22: sparse: sparse: incorrect
type in argument 1 (incompatible argument 1 (different address spaces))
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fbfd64d25c7af3b8695201ebc85efe90be28c5a3
commit: 5b9e00a6004cf837c43fdb8d5290df619de78024 powerpc/4xx: Fix warp_gpio_leds build failure
date: 10 months ago
config: powerpc-randconfig-r131-20250107 (https://download.01.org/0day-ci/archive/20250107/202501070924.pFM8uHGJ-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20250107/202501070924.pFM8uHGJ-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/202501070924.pFM8uHGJ-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> arch/powerpc/platforms/44x/warp.c:316:22: sparse: sparse: incorrect type in argument 1 (incompatible argument 1 (different address spaces)) @@ expected int ( *threadfn )( ... ) @@ got int ( * )( ... ) @@
arch/powerpc/platforms/44x/warp.c:316:22: sparse: expected int ( *threadfn )( ... )
arch/powerpc/platforms/44x/warp.c:316:22: sparse: got int ( * )( ... )
>> arch/powerpc/platforms/44x/warp.c:316:22: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void *data @@ got void [noderef] __iomem *static [assigned] [toplevel] dtm_fpga @@
arch/powerpc/platforms/44x/warp.c:316:22: sparse: expected void *data
arch/powerpc/platforms/44x/warp.c:316:22: sparse: got void [noderef] __iomem *static [assigned] [toplevel] dtm_fpga
arch/powerpc/platforms/44x/warp.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/xarray.h, ...):
include/linux/page-flags.h:242:46: sparse: sparse: self-comparison always evaluates to false
vim +316 arch/powerpc/platforms/44x/warp.c
f9bdedb2c5f2952 Sean MacLennan 2008-01-22 298
f9bdedb2c5f2952 Sean MacLennan 2008-01-22 299 static int __init pika_dtm_start(void)
f9bdedb2c5f2952 Sean MacLennan 2008-01-22 300 {
f9bdedb2c5f2952 Sean MacLennan 2008-01-22 301 struct task_struct *dtm_thread;
f9bdedb2c5f2952 Sean MacLennan 2008-01-22 302 struct device_node *np;
f9bdedb2c5f2952 Sean MacLennan 2008-01-22 303
f9bdedb2c5f2952 Sean MacLennan 2008-01-22 304 np = of_find_compatible_node(NULL, NULL, "pika,fpga");
f9bdedb2c5f2952 Sean MacLennan 2008-01-22 305 if (np == NULL)
f9bdedb2c5f2952 Sean MacLennan 2008-01-22 306 return -ENOENT;
f9bdedb2c5f2952 Sean MacLennan 2008-01-22 307
4ebef31fa6e013e Sean MacLennan 2008-05-20 308 dtm_fpga = of_iomap(np, 0);
f9bdedb2c5f2952 Sean MacLennan 2008-01-22 309 of_node_put(np);
4ebef31fa6e013e Sean MacLennan 2008-05-20 310 if (dtm_fpga == NULL)
f9bdedb2c5f2952 Sean MacLennan 2008-01-22 311 return -ENOENT;
f9bdedb2c5f2952 Sean MacLennan 2008-01-22 312
805e324b7fbddf9 Sean MacLennan 2009-04-06 313 /* Must get post info before thread starts. */
805e324b7fbddf9 Sean MacLennan 2009-04-06 314 warp_post_info();
805e324b7fbddf9 Sean MacLennan 2009-04-06 315
4ebef31fa6e013e Sean MacLennan 2008-05-20 @316 dtm_thread = kthread_run(pika_dtm_thread, dtm_fpga, "pika-dtm");
f9bdedb2c5f2952 Sean MacLennan 2008-01-22 317 if (IS_ERR(dtm_thread)) {
4ebef31fa6e013e Sean MacLennan 2008-05-20 318 iounmap(dtm_fpga);
f9bdedb2c5f2952 Sean MacLennan 2008-01-22 319 return PTR_ERR(dtm_thread);
f9bdedb2c5f2952 Sean MacLennan 2008-01-22 320 }
f9bdedb2c5f2952 Sean MacLennan 2008-01-22 321
f9bdedb2c5f2952 Sean MacLennan 2008-01-22 322 return 0;
f9bdedb2c5f2952 Sean MacLennan 2008-01-22 323 }
4ebef31fa6e013e Sean MacLennan 2008-05-20 324 machine_late_initcall(warp, pika_dtm_start);
4ebef31fa6e013e Sean MacLennan 2008-05-20 325
:::::: The code at line 316 was first introduced by commit
:::::: 4ebef31fa6e013e5cd3d4522e6018eb6d55046be [POWERPC] PIKA Warp: Update platform code to support Rev B boards
:::::: TO: Sean MacLennan <smaclennan@...atech.com>
:::::: CC: Josh Boyer <jwboyer@...ux.vnet.ibm.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists