CC: [email protected] In-Reply-To: <[email protected]> References: <[email protected]> TO: "Matthew Wilcox (Oracle)" <[email protected]> TO: [email protected] CC: "Matthew Wilcox (Oracle)" <[email protected]> CC: [email protected] CC: [email protected] CC: Christoph Hellwig <[email protected]>
Hi "Matthew, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.14-rc1 next-20210715] [cannot apply to hnaz-linux-mm/master xfs-linux/for-next tip/perf/core] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Matthew-Wilcox-Oracle/Memory-folios/20210715-133101 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 8096acd7442e613fad0354fc8dfdb2003cceea0b :::::: branch date: 16 hours ago :::::: commit date: 16 hours ago config: x86_64-randconfig-s021-20210715 (attached as .config) compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-341-g8af24329-dirty # https://github.com/0day-ci/linux/commit/3ec200aa142decc0104e2b10b58da2d9b333ab84 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Matthew-Wilcox-Oracle/Memory-folios/20210715-133101 git checkout 3ec200aa142decc0104e2b10b58da2d9b333ab84 # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> sparse warnings: (new ones prefixed by >>) mm/memcontrol.c:4127:21: sparse: sparse: incompatible types in comparison expression (different address spaces): mm/memcontrol.c:4127:21: sparse: struct mem_cgroup_threshold_ary [noderef] __rcu * mm/memcontrol.c:4127:21: sparse: struct mem_cgroup_threshold_ary * mm/memcontrol.c:4129:21: sparse: sparse: incompatible types in comparison expression (different address spaces): mm/memcontrol.c:4129:21: sparse: struct mem_cgroup_threshold_ary [noderef] __rcu * mm/memcontrol.c:4129:21: sparse: struct mem_cgroup_threshold_ary * mm/memcontrol.c:4285:9: sparse: sparse: incompatible types in comparison expression (different address spaces): mm/memcontrol.c:4285:9: sparse: struct mem_cgroup_threshold_ary [noderef] __rcu * mm/memcontrol.c:4285:9: sparse: struct mem_cgroup_threshold_ary * mm/memcontrol.c:4379:9: sparse: sparse: incompatible types in comparison expression (different address spaces): mm/memcontrol.c:4379:9: sparse: struct mem_cgroup_threshold_ary [noderef] __rcu * mm/memcontrol.c:4379:9: sparse: struct mem_cgroup_threshold_ary * mm/memcontrol.c:5974:23: sparse: sparse: incompatible types in comparison expression (different address spaces): mm/memcontrol.c:5974:23: sparse: struct task_struct [noderef] __rcu * mm/memcontrol.c:5974:23: sparse: struct task_struct * mm/memcontrol.c: note: in included file: include/linux/memcontrol.h:750:9: sparse: sparse: context imbalance in 'lock_page_lruvec' - wrong count at exit include/linux/memcontrol.h:750:9: sparse: sparse: context imbalance in 'lock_page_lruvec_irq' - wrong count at exit include/linux/memcontrol.h:750:9: sparse: sparse: context imbalance in 'lock_page_lruvec_irqsave' - wrong count at exit >> mm/memcontrol.c:1977:6: sparse: sparse: context imbalance in >> 'folio_memcg_lock' - wrong count at exit mm/memcontrol.c:2031:17: sparse: sparse: context imbalance in '__folio_memcg_unlock' - unexpected unlock vim +/folio_memcg_lock +1977 mm/memcontrol.c 3d8b38eb81cac8 Roman Gushchin 2018-08-21 1966 d7365e783edb85 Johannes Weiner 2014-10-29 1967 /** 3ec200aa142dec Matthew Wilcox (Oracle 2021-07-15 1968) * folio_memcg_lock - Bind a folio to its memcg. 3ec200aa142dec Matthew Wilcox (Oracle 2021-07-15 1969) * @folio: The folio. 32047e2a85f066 KAMEZAWA Hiroyuki 2010-10-27 1970 * 3ec200aa142dec Matthew Wilcox (Oracle 2021-07-15 1971) * This function prevents unlocked LRU folios from being moved to 739f79fc9db1b3 Johannes Weiner 2017-08-18 1972 * another cgroup. 739f79fc9db1b3 Johannes Weiner 2017-08-18 1973 * 3ec200aa142dec Matthew Wilcox (Oracle 2021-07-15 1974) * It ensures lifetime of the bound memcg. The caller is responsible 3ec200aa142dec Matthew Wilcox (Oracle 2021-07-15 1975) * for the lifetime of the folio. d7365e783edb85 Johannes Weiner 2014-10-29 1976 */ 3ec200aa142dec Matthew Wilcox (Oracle 2021-07-15 @1977) void folio_memcg_lock(struct folio *folio) 89c06bd52fb9ff KAMEZAWA Hiroyuki 2012-03-21 1978 { 89c06bd52fb9ff KAMEZAWA Hiroyuki 2012-03-21 1979 struct mem_cgroup *memcg; 6de226191d12fc Johannes Weiner 2015-02-11 1980 unsigned long flags; 89c06bd52fb9ff KAMEZAWA Hiroyuki 2012-03-21 1981 6de226191d12fc Johannes Weiner 2015-02-11 1982 /* 6de226191d12fc Johannes Weiner 2015-02-11 1983 * The RCU lock is held throughout the transaction. The fast 6de226191d12fc Johannes Weiner 2015-02-11 1984 * path can get away without acquiring the memcg->move_lock 6de226191d12fc Johannes Weiner 2015-02-11 1985 * because page moving starts with an RCU grace period. 6de226191d12fc Johannes Weiner 2015-02-11 1986 */ d7365e783edb85 Johannes Weiner 2014-10-29 1987 rcu_read_lock(); d7365e783edb85 Johannes Weiner 2014-10-29 1988 d7365e783edb85 Johannes Weiner 2014-10-29 1989 if (mem_cgroup_disabled()) 1c824a680b1b67 Johannes Weiner 2021-04-29 1990 return; 89c06bd52fb9ff KAMEZAWA Hiroyuki 2012-03-21 1991 again: 3ec200aa142dec Matthew Wilcox (Oracle 2021-07-15 1992) memcg = folio_memcg(folio); 2983331575bfb2 Johannes Weiner 2014-12-10 1993 if (unlikely(!memcg)) 1c824a680b1b67 Johannes Weiner 2021-04-29 1994 return; d7365e783edb85 Johannes Weiner 2014-10-29 1995 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
