* [chrome-os:chromeos-4.14 20/20] mm/vmscan.c:2824:9: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2021-07-23 23:33 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-23 23:33 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 5254 bytes --]
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.14
head: 1668a603a8f736f3783d62a0d59f1e1f087df631
commit: 1668a603a8f736f3783d62a0d59f1e1f087df631 [20/20] FIXUP: BACKPORT: FROMLIST: mm: multigenerational lru: aging
config: sparc-randconfig-s032-20210722 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 10.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-4.14
git checkout 1668a603a8f736f3783d62a0d59f1e1f087df631
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> mm/vmscan.c:2824:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct lockdep_map *lock @@ got struct lockdep_map [noderef] <asn:4> * @@
mm/vmscan.c:2824:9: sparse: expected struct lockdep_map *lock
mm/vmscan.c:2824:9: sparse: got struct lockdep_map [noderef] <asn:4> *
mm/vmscan.c:2830:40: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] <asn:4> *owner @@
mm/vmscan.c:2830:40: sparse: expected struct task_struct *p
mm/vmscan.c:2830:40: sparse: got struct task_struct [noderef] <asn:4> *owner
mm/vmscan.c:1835:48: sparse: sparse: context imbalance in 'putback_inactive_pages' - unexpected unlock
mm/vmscan.c:2069:48: sparse: sparse: context imbalance in 'move_active_pages_to_lru' - unexpected unlock
mm/vmscan.c:6693:48: sparse: sparse: context imbalance in 'check_move_unevictable_pages' - unexpected unlock
In file included from include/linux/workqueue.h:9,
from include/linux/srcu.h:34,
from include/linux/notifier.h:16,
from include/linux/memory_hotplug.h:7,
from include/linux/mmzone.h:913,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from mm/vmscan.c:17:
include/linux/timer.h: In function 'timer_setup':
include/linux/timer.h:179:23: warning: cast between incompatible function types from 'void (*)(struct timer_list *)' to 'void (*)(long unsigned int)' [-Wcast-function-type]
179 | __setup_timer(timer, (TIMER_FUNC_TYPE)callback,
| ^
include/linux/timer.h:144:25: note: in definition of macro '__setup_timer'
144 | (_timer)->function = (_fn); 24- | ^~~
In file included from include/linux/cpuset.h:13,
from mm/vmscan.c:38:
include/linux/sched/topology.h: At top level:
include/linux/sched/topology.h:197:1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
197 | const struct sched_group_energy * const(*sched_domain_energy_f)(int cpu);
| ^~~~~
vim +2824 mm/vmscan.c
3daaf42f537dcb Yu Zhao 2021-04-05 2819
3daaf42f537dcb Yu Zhao 2021-04-05 2820 void lru_gen_migrate_mm(struct mm_struct *mm)
3daaf42f537dcb Yu Zhao 2021-04-05 2821 {
3daaf42f537dcb Yu Zhao 2021-04-05 2822 struct mem_cgroup *memcg;
3daaf42f537dcb Yu Zhao 2021-04-05 2823
3daaf42f537dcb Yu Zhao 2021-04-05 @2824 lockdep_assert_held(&mm->owner->alloc_lock);
3daaf42f537dcb Yu Zhao 2021-04-05 2825
3daaf42f537dcb Yu Zhao 2021-04-05 2826 if (mem_cgroup_disabled())
3daaf42f537dcb Yu Zhao 2021-04-05 2827 return;
3daaf42f537dcb Yu Zhao 2021-04-05 2828
3daaf42f537dcb Yu Zhao 2021-04-05 2829 rcu_read_lock();
3daaf42f537dcb Yu Zhao 2021-04-05 2830 memcg = mem_cgroup_from_task(mm->owner);
3daaf42f537dcb Yu Zhao 2021-04-05 2831 rcu_read_unlock();
3daaf42f537dcb Yu Zhao 2021-04-05 2832 if (memcg == mm->lrugen.memcg)
3daaf42f537dcb Yu Zhao 2021-04-05 2833 return;
3daaf42f537dcb Yu Zhao 2021-04-05 2834
3daaf42f537dcb Yu Zhao 2021-04-05 2835 VM_BUG_ON_MM(!mm->lrugen.memcg, mm);
3daaf42f537dcb Yu Zhao 2021-04-05 2836 VM_BUG_ON_MM(list_empty(&mm->lrugen.list), mm);
3daaf42f537dcb Yu Zhao 2021-04-05 2837
3daaf42f537dcb Yu Zhao 2021-04-05 2838 lru_gen_del_mm(mm);
3daaf42f537dcb Yu Zhao 2021-04-05 2839 lru_gen_add_mm(mm);
3daaf42f537dcb Yu Zhao 2021-04-05 2840 }
3daaf42f537dcb Yu Zhao 2021-04-05 2841
:::::: The code at line 2824 was first introduced by commit
:::::: 3daaf42f537dcb7ac157c4922dc2746897cd3deb BACKPORT: FROMLIST: mm: multigenerational lru: mm_struct list
:::::: TO: Yu Zhao <yuzhao@google.com>
:::::: CC: Commit Bot <commit-bot@chromium.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 21818 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-23 23:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-23 23:33 [chrome-os:chromeos-4.14 20/20] mm/vmscan.c:2824:9: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
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.