mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Michael Ellerman <mpe@ellerman.id.au>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: arch/powerpc/platforms/44x/warp.c:316:22: sparse: sparse: incorrect type in argument 1 (incompatible argument 1 (different address spaces))
Date: Tue, 7 Jan 2025 09:57:34 +0800	[thread overview]
Message-ID: <202501070924.pFM8uHGJ-lkp@intel.com> (raw)

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@intel.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@pikatech.com>
:::::: CC: Josh Boyer <jwboyer@linux.vnet.ibm.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2025-01-07  1:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202501070924.pFM8uHGJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mpe@ellerman.id.au \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®