public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Qing Zhang <zhangqing@loongson.cn>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Huacai Chen <chenhuacai@kernel.org>
Subject: arch/loongarch/kernel/process.c:190:46: sparse: sparse: incorrect type in argument 1 (different address spaces)
Date: Sat, 1 Jul 2023 03:14:58 +0800	[thread overview]
Message-ID: <202307010315.q5hnCLaT-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   533925cb760431cb496a8c965cfd765a1a21d37e
commit: 49232773d8233ed70c4998851bc84e465fc1c788 LoongArch: Add guess unwinder support
date:   11 months ago
config: loongarch-randconfig-r073-20230627 (https://download.01.org/0day-ci/archive/20230701/202307010315.q5hnCLaT-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230701/202307010315.q5hnCLaT-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/202307010315.q5hnCLaT-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> arch/loongarch/kernel/process.c:190:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned long [noderef] __percpu * @@
   arch/loongarch/kernel/process.c:190:46: sparse:     expected void *ptr
   arch/loongarch/kernel/process.c:190:46: sparse:     got unsigned long [noderef] __percpu *
>> arch/loongarch/kernel/process.c:190:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned long [noderef] __percpu * @@
   arch/loongarch/kernel/process.c:190:46: sparse:     expected void *ptr
   arch/loongarch/kernel/process.c:190:46: sparse:     got unsigned long [noderef] __percpu *
>> arch/loongarch/kernel/process.c:190:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned long [noderef] __percpu * @@
   arch/loongarch/kernel/process.c:190:46: sparse:     expected void *ptr
   arch/loongarch/kernel/process.c:190:46: sparse:     got unsigned long [noderef] __percpu *
>> arch/loongarch/kernel/process.c:190:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned long [noderef] __percpu * @@
   arch/loongarch/kernel/process.c:190:46: sparse:     expected void *ptr
   arch/loongarch/kernel/process.c:190:46: sparse:     got unsigned long [noderef] __percpu *
   arch/loongarch/kernel/process.c: note: in included file (through arch/loongarch/include/asm/cpu-info.h, arch/loongarch/include/asm/processor.h, ...):
   arch/loongarch/include/asm/loongarch.h:232:16: sparse: sparse: undefined identifier '__builtin_loongarch_csrrd_w'
   arch/loongarch/include/asm/loongarch.h:232:16: sparse: sparse: cast from unknown type
   arch/loongarch/include/asm/loongarch.h:242:9: sparse: sparse: undefined identifier '__builtin_loongarch_csrwr_w'
   arch/loongarch/include/asm/loongarch.h:242:9: sparse: sparse: cast from unknown type
   arch/loongarch/include/asm/loongarch.h:232:16: sparse: sparse: cast from unknown type
   arch/loongarch/include/asm/loongarch.h:232:16: sparse: sparse: cast from unknown type
   arch/loongarch/include/asm/loongarch.h:232:16: sparse: sparse: cast from unknown type

vim +190 arch/loongarch/kernel/process.c

   186	
   187	bool in_irq_stack(unsigned long stack, struct stack_info *info)
   188	{
   189		unsigned long nextsp;
 > 190		unsigned long begin = (unsigned long)this_cpu_read(irq_stack);
   191		unsigned long end = begin + IRQ_STACK_START;
   192	
   193		if (stack < begin || stack >= end)
   194			return false;
   195	
   196		nextsp = *(unsigned long *)end;
   197		if (nextsp & (SZREG - 1))
   198			return false;
   199	
   200		info->begin = begin;
   201		info->end = end;
   202		info->next_sp = nextsp;
   203		info->type = STACK_TYPE_IRQ;
   204	
   205		return true;
   206	}
   207	

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

                 reply	other threads:[~2023-06-30 19:15 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=202307010315.q5hnCLaT-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=chenhuacai@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=zhangqing@loongson.cn \
    /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