All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: steven@liquorix.net
Cc: oe-kbuild-all@lists.linux.dev
Subject: [zen:6.4/prjc 381/386] kernel/sched/alt_core.c:4128:32: sparse: sparse: incorrect type in argument 2 (different address spaces)
Date: Fri, 7 Jul 2023 15:31:42 +0800	[thread overview]
Message-ID: <202307071551.plsRxOGn-lkp@intel.com> (raw)

tree:   https://github.com/zen-kernel/zen-kernel 6.4/prjc
head:   ea6d5107f9aa76407998568ad4cbcf54879ee0c0
commit: 4facf7f6e34125d06a1fc94cbc716e2cb1e09f82 [381/386] sched/alt: [Sync] 223baf9d17f2 sched: Fix performance regression introduced by mm_cid
config: i386-randconfig-i061-20230704 (https://download.01.org/0day-ci/archive/20230707/202307071551.plsRxOGn-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230707/202307071551.plsRxOGn-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/202307071551.plsRxOGn-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   kernel/sched/alt_core.c:1009:38: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected struct task_struct *curr @@     got struct task_struct [noderef] __rcu *curr @@
   kernel/sched/alt_core.c:1009:38: sparse:     expected struct task_struct *curr
   kernel/sched/alt_core.c:1009:38: sparse:     got struct task_struct [noderef] __rcu *curr
   kernel/sched/alt_core.c:4025:15: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/alt_core.c:4025:15: sparse:    struct task_struct *
   kernel/sched/alt_core.c:4025:15: sparse:    struct task_struct [noderef] __rcu *
>> kernel/sched/alt_core.c:4128:32: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected struct task_struct *curr @@     got struct task_struct [noderef] __rcu *curr @@
   kernel/sched/alt_core.c:4128:32: sparse:     expected struct task_struct *curr
   kernel/sched/alt_core.c:4128:32: sparse:     got struct task_struct [noderef] __rcu *curr
   kernel/sched/alt_core.c:4747:14: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct task_struct *prev @@     got struct task_struct [noderef] __rcu *curr @@
   kernel/sched/alt_core.c:4747:14: sparse:     expected struct task_struct *prev
   kernel/sched/alt_core.c:4747:14: sparse:     got struct task_struct [noderef] __rcu *curr
   kernel/sched/alt_core.c:5283:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/alt_core.c:5283:17: sparse:    struct task_struct *
   kernel/sched/alt_core.c:5283:17: sparse:    struct task_struct [noderef] __rcu *
   kernel/sched/alt_core.c:5433:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/alt_core.c:5433:22: sparse:    struct task_struct [noderef] __rcu *
   kernel/sched/alt_core.c:5433:22: sparse:    struct task_struct *
   kernel/sched/alt_core.c:7048:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct task_struct *p @@     got struct task_struct [noderef] __rcu *curr @@
   kernel/sched/alt_core.c:7048:25: sparse:     expected struct task_struct *p
   kernel/sched/alt_core.c:7048:25: sparse:     got struct task_struct [noderef] __rcu *curr
   kernel/sched/alt_core.c:536:6: sparse: sparse: context imbalance in 'raw_spin_rq_lock_nested' - wrong count at exit
   kernel/sched/alt_core.c:555:6: sparse: sparse: context imbalance in 'raw_spin_rq_unlock' - unexpected unlock
   kernel/sched/alt_core.c:1157:37: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/alt_core.c:1157:37: sparse:    struct task_struct *
   kernel/sched/alt_core.c:1157:37: sparse:    struct task_struct [noderef] __rcu *
   kernel/sched/alt_core.c:1157:37: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/alt_core.c:1157:37: sparse:    struct task_struct *
   kernel/sched/alt_core.c:1157:37: sparse:    struct task_struct [noderef] __rcu *
   kernel/sched/alt_core.c:1157:37: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/alt_core.c:1157:37: sparse:    struct task_struct *
   kernel/sched/alt_core.c:1157:37: sparse:    struct task_struct [noderef] __rcu *
   kernel/sched/alt_core.c:1157:37: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/alt_core.c:1157:37: sparse:    struct task_struct *
   kernel/sched/alt_core.c:1157:37: sparse:    struct task_struct [noderef] __rcu *
   kernel/sched/alt_core.c:1157:37: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/alt_core.c:1157:37: sparse:    struct task_struct *
   kernel/sched/alt_core.c:1157:37: sparse:    struct task_struct [noderef] __rcu *
   kernel/sched/alt_core.c:1157:37: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/alt_core.c:1157:37: sparse:    struct task_struct *
   kernel/sched/alt_core.c:1157:37: sparse:    struct task_struct [noderef] __rcu *

vim +4128 kernel/sched/alt_core.c

  4104	
  4105	/*
  4106	 * This function gets called by the timer code, with HZ frequency.
  4107	 * We call it with interrupts disabled.
  4108	 */
  4109	void scheduler_tick(void)
  4110	{
  4111		int cpu __maybe_unused = smp_processor_id();
  4112		struct rq *rq = cpu_rq(cpu);
  4113		u64 resched_latency;
  4114	
  4115		if (housekeeping_cpu(cpu, HK_TYPE_TICK))
  4116			arch_scale_freq_tick();
  4117	
  4118		sched_clock_tick();
  4119	
  4120		raw_spin_lock(&rq->lock);
  4121		update_rq_clock(rq);
  4122	
  4123		scheduler_task_tick(rq);
  4124		if (sched_feat(LATENCY_WARN))
  4125			resched_latency = cpu_resched_latency(rq);
  4126		calc_global_load_tick(rq);
  4127	
> 4128		task_tick_mm_cid(rq, rq->curr);
  4129	
  4130		rq->last_tick = rq->clock;
  4131		raw_spin_unlock(&rq->lock);
  4132	
  4133		if (sched_feat(LATENCY_WARN) && resched_latency)
  4134			resched_latency_warn(cpu, resched_latency);
  4135	
  4136		perf_event_task_tick();
  4137	}
  4138	

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

                 reply	other threads:[~2023-07-07  7:31 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=202307071551.plsRxOGn-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=steven@liquorix.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.