From: kernel test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Muchun Song <songmuchun@bytedance.com>
Subject: mm/memcontrol.c:600:9: sparse: sparse: incorrect type in argument 1 (different address spaces)
Date: Sat, 12 Aug 2023 08:20:00 +0800 [thread overview]
Message-ID: <202308120839.dVnfuv2t-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 190bf7b14b0cf3df19c059061be032bd8994a597
commit: e575d401583273a7ac5dfb27520e41c821e81816 mm/memcontrol: Replace the PREEMPT_RT conditionals
date: 11 months ago
config: loongarch-randconfig-r072-20230811 (https://download.01.org/0day-ci/archive/20230812/202308120839.dVnfuv2t-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230812/202308120839.dVnfuv2t-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/202308120839.dVnfuv2t-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> mm/memcontrol.c:600:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
mm/memcontrol.c:600:9: sparse: expected void *ptr
mm/memcontrol.c:600:9: sparse: got unsigned int [noderef] __percpu *
>> mm/memcontrol.c:600:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
mm/memcontrol.c:600:9: sparse: expected void *ptr
mm/memcontrol.c:600:9: sparse: got unsigned int [noderef] __percpu *
>> mm/memcontrol.c:600:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
mm/memcontrol.c:600:9: sparse: expected void *ptr
mm/memcontrol.c:600:9: sparse: got unsigned int [noderef] __percpu *
>> mm/memcontrol.c:600:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
mm/memcontrol.c:600:9: sparse: expected void *ptr
mm/memcontrol.c:600:9: sparse: got unsigned int [noderef] __percpu *
>> mm/memcontrol.c:600:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
mm/memcontrol.c:600:9: sparse: expected void *ptr
mm/memcontrol.c:600:9: sparse: got int [noderef] __percpu *
>> mm/memcontrol.c:600:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
mm/memcontrol.c:600:9: sparse: expected void *ptr
mm/memcontrol.c:600:9: sparse: got int [noderef] __percpu *
>> mm/memcontrol.c:600:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
mm/memcontrol.c:600:9: sparse: expected void *ptr
mm/memcontrol.c:600:9: sparse: got int [noderef] __percpu *
>> mm/memcontrol.c:600:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
mm/memcontrol.c:600:9: sparse: expected void *ptr
mm/memcontrol.c:600:9: sparse: got int [noderef] __percpu *
mm/memcontrol.c:606:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
mm/memcontrol.c:606:9: sparse: expected void *ptr
mm/memcontrol.c:606:9: sparse: got unsigned int [noderef] __percpu *
mm/memcontrol.c:606:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
mm/memcontrol.c:606:9: sparse: expected void *ptr
mm/memcontrol.c:606:9: sparse: got unsigned int [noderef] __percpu *
mm/memcontrol.c:606:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
mm/memcontrol.c:606:9: sparse: expected void *ptr
mm/memcontrol.c:606:9: sparse: got unsigned int [noderef] __percpu *
mm/memcontrol.c:606:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
mm/memcontrol.c:606:9: sparse: expected void *ptr
mm/memcontrol.c:606:9: sparse: got unsigned int [noderef] __percpu *
mm/memcontrol.c:606:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
mm/memcontrol.c:606:9: sparse: expected void *ptr
mm/memcontrol.c:606:9: sparse: got int [noderef] __percpu *
mm/memcontrol.c:606:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
mm/memcontrol.c:606:9: sparse: expected void *ptr
mm/memcontrol.c:606:9: sparse: got int [noderef] __percpu *
mm/memcontrol.c:606:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
mm/memcontrol.c:606:9: sparse: expected void *ptr
mm/memcontrol.c:606:9: sparse: got int [noderef] __percpu *
mm/memcontrol.c:606:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
mm/memcontrol.c:606:9: sparse: expected void *ptr
mm/memcontrol.c:606:9: sparse: got int [noderef] __percpu *
mm/memcontrol.c:4109:21: sparse: sparse: incompatible types in comparison expression (different address spaces):
mm/memcontrol.c:4109:21: sparse: struct mem_cgroup_threshold_ary [noderef] __rcu *
mm/memcontrol.c:4109:21: sparse: struct mem_cgroup_threshold_ary *
mm/memcontrol.c:4111:21: sparse: sparse: incompatible types in comparison expression (different address spaces):
mm/memcontrol.c:4111:21: sparse: struct mem_cgroup_threshold_ary [noderef] __rcu *
mm/memcontrol.c:4111:21: sparse: struct mem_cgroup_threshold_ary *
mm/memcontrol.c:4267:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
mm/memcontrol.c:4267:9: sparse: struct mem_cgroup_threshold_ary [noderef] __rcu *
mm/memcontrol.c:4267:9: sparse: struct mem_cgroup_threshold_ary *
mm/memcontrol.c:4361:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
mm/memcontrol.c:4361:9: sparse: struct mem_cgroup_threshold_ary [noderef] __rcu *
mm/memcontrol.c:4361:9: sparse: struct mem_cgroup_threshold_ary *
mm/memcontrol.c:5991:23: sparse: sparse: incompatible types in comparison expression (different address spaces):
mm/memcontrol.c:5991:23: sparse: struct task_struct [noderef] __rcu *
mm/memcontrol.c:5991:23: sparse: struct task_struct *
mm/memcontrol.c:914:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got struct mem_cgroup *[noderef] __percpu * @@
mm/memcontrol.c:914:24: sparse: expected void *ptr
mm/memcontrol.c:914:24: sparse: got struct mem_cgroup *[noderef] __percpu *
mm/memcontrol.c:914:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got struct mem_cgroup *[noderef] __percpu * @@
mm/memcontrol.c:914:24: sparse: expected void *ptr
mm/memcontrol.c:914:24: sparse: got struct mem_cgroup *[noderef] __percpu *
mm/memcontrol.c:914:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got struct mem_cgroup *[noderef] __percpu * @@
mm/memcontrol.c:914:24: sparse: expected void *ptr
mm/memcontrol.c:914:24: sparse: got struct mem_cgroup *[noderef] __percpu *
mm/memcontrol.c:914:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got struct mem_cgroup *[noderef] __percpu * @@
mm/memcontrol.c:914:24: sparse: expected void *ptr
mm/memcontrol.c:914:24: sparse: got struct mem_cgroup *[noderef] __percpu *
mm/memcontrol.c: note: in included file:
include/linux/memcontrol.h:754:9: sparse: sparse: context imbalance in 'folio_lruvec_lock' - wrong count at exit
include/linux/memcontrol.h:754:9: sparse: sparse: context imbalance in 'folio_lruvec_lock_irq' - wrong count at exit
include/linux/memcontrol.h:754:9: sparse: sparse: context imbalance in 'folio_lruvec_lock_irqsave' - wrong count at exit
mm/memcontrol.c:2027:6: sparse: sparse: context imbalance in 'folio_memcg_lock' - wrong count at exit
mm/memcontrol.c:2079:17: sparse: sparse: context imbalance in '__folio_memcg_unlock' - unexpected unlock
mm/memcontrol.c:914:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got struct mem_cgroup *[noderef] __percpu * @@
mm/memcontrol.c:914:24: sparse: expected void *ptr
mm/memcontrol.c:914:24: sparse: got struct mem_cgroup *[noderef] __percpu *
mm/memcontrol.c:914:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got struct mem_cgroup *[noderef] __percpu * @@
mm/memcontrol.c:914:24: sparse: expected void *ptr
mm/memcontrol.c:914:24: sparse: got struct mem_cgroup *[noderef] __percpu *
mm/memcontrol.c:914:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got struct mem_cgroup *[noderef] __percpu * @@
mm/memcontrol.c:914:24: sparse: expected void *ptr
mm/memcontrol.c:914:24: sparse: got struct mem_cgroup *[noderef] __percpu *
mm/memcontrol.c:914:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got struct mem_cgroup *[noderef] __percpu * @@
mm/memcontrol.c:914:24: sparse: expected void *ptr
mm/memcontrol.c:914:24: sparse: got struct mem_cgroup *[noderef] __percpu *
mm/memcontrol.c:914:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got struct mem_cgroup *[noderef] __percpu * @@
mm/memcontrol.c:914:24: sparse: expected void *ptr
mm/memcontrol.c:914:24: sparse: got struct mem_cgroup *[noderef] __percpu *
mm/memcontrol.c:914:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got struct mem_cgroup *[noderef] __percpu * @@
mm/memcontrol.c:914:24: sparse: expected void *ptr
mm/memcontrol.c:914:24: sparse: got struct mem_cgroup *[noderef] __percpu *
mm/memcontrol.c:914:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got struct mem_cgroup *[noderef] __percpu * @@
mm/memcontrol.c:914:24: sparse: expected void *ptr
mm/memcontrol.c:914:24: sparse: got struct mem_cgroup *[noderef] __percpu *
mm/memcontrol.c:914:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got struct mem_cgroup *[noderef] __percpu * @@
mm/memcontrol.c:914:24: sparse: expected void *ptr
mm/memcontrol.c:914:24: sparse: got struct mem_cgroup *[noderef] __percpu *
mm/memcontrol.c:914:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got struct mem_cgroup *[noderef] __percpu * @@
mm/memcontrol.c:914:24: sparse: expected void *ptr
mm/memcontrol.c:914:24: sparse: got struct mem_cgroup *[noderef] __percpu *
mm/memcontrol.c:914:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got struct mem_cgroup *[noderef] __percpu * @@
mm/memcontrol.c:914:24: sparse: expected void *ptr
mm/memcontrol.c:914:24: sparse: got struct mem_cgroup *[noderef] __percpu *
mm/memcontrol.c:914:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got struct mem_cgroup *[noderef] __percpu * @@
mm/memcontrol.c:914:24: sparse: expected void *ptr
mm/memcontrol.c:914:24: sparse: got struct mem_cgroup *[noderef] __percpu *
mm/memcontrol.c:914:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got struct mem_cgroup *[noderef] __percpu * @@
mm/memcontrol.c:914:24: sparse: expected void *ptr
mm/memcontrol.c:914:24: sparse: got struct mem_cgroup *[noderef] __percpu *
mm/memcontrol.c:914:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got struct mem_cgroup *[noderef] __percpu * @@
mm/memcontrol.c:914:24: sparse: expected void *ptr
mm/memcontrol.c:914:24: sparse: got struct mem_cgroup *[noderef] __percpu *
mm/memcontrol.c:914:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got struct mem_cgroup *[noderef] __percpu * @@
mm/memcontrol.c:914:24: sparse: expected void *ptr
vim +600 mm/memcontrol.c
591
592 /*
593 * Accessors to ensure that preemption is disabled on PREEMPT_RT because it can
594 * not rely on this as part of an acquired spinlock_t lock. These functions are
595 * never used in hardirq context on PREEMPT_RT and therefore disabling preemtion
596 * is sufficient.
597 */
598 static void memcg_stats_lock(void)
599 {
> 600 preempt_disable_nested();
601 VM_WARN_ON_IRQS_ENABLED();
602 }
603
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2023-08-12 0:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-12 0:20 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-01-06 17:14 mm/memcontrol.c:600:9: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
2022-12-23 22:24 kernel test robot
2022-12-02 12:12 kernel test robot
2022-10-11 6:35 kernel test robot
2022-10-11 6:39 ` Sebastian Andrzej Siewior
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=202308120839.dVnfuv2t-lkp@intel.com \
--to=lkp@intel.com \
--cc=bigeasy@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=songmuchun@bytedance.com \
--cc=tglx@linutronix.de \
/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