lkml.org 
[lkml]   [2021]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[hnaz-mm:master 88/435] mm/memcontrol.c:2775:13: error: unused function 'cancel_charge'
tree:   https://github.com/hnaz/linux-mm master
head: b8280145cf2a894c873fdf91fb2af474c52ac6cc
commit: 1105665c1f686ecdaccb1981afea6fb27ab6ff61 [88/435] memcg, kmem: further deprecate kmem.limit_in_bytes
config: arm-buildonly-randconfig-r005-20211105 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 847a6807332b13f43704327c2d30103ec0347c77)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/hnaz/linux-mm/commit/1105665c1f686ecdaccb1981afea6fb27ab6ff61
git remote add hnaz-mm https://github.com/hnaz/linux-mm
git fetch --no-tags hnaz-mm master
git checkout 1105665c1f686ecdaccb1981afea6fb27ab6ff61
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> mm/memcontrol.c:2775:13: error: unused function 'cancel_charge' [-Werror,-Wunused-function]
static void cancel_charge(struct mem_cgroup *memcg, unsigned int nr_pages)
^
mm/memcontrol.c:3341:19: error: unused function 'mem_cgroup_move_swap_account' [-Werror,-Wunused-function]
static inline int mem_cgroup_move_swap_account(swp_entry_t entry,
^
2 errors generated.


vim +/cancel_charge +2775 mm/memcontrol.c

c5c8b16b596e15 Muchun Song 2021-06-28 2773
f0e45fb4da2974 Johannes Weiner 2020-06-03 2774 #if defined(CONFIG_MEMCG_KMEM) || defined(CONFIG_MMU)
00501b531c4723 Johannes Weiner 2014-08-08 @2775 static void cancel_charge(struct mem_cgroup *memcg, unsigned int nr_pages)
a3032a2c15c696 Daisuke Nishimura 2009-12-15 2776 {
ce00a967377baa Johannes Weiner 2014-09-05 2777 if (mem_cgroup_is_root(memcg))
ce00a967377baa Johannes Weiner 2014-09-05 2778 return;
ce00a967377baa Johannes Weiner 2014-09-05 2779
3e32cb2e0a12b6 Johannes Weiner 2014-12-10 2780 page_counter_uncharge(&memcg->memory, nr_pages);
7941d2145abc4d Johannes Weiner 2016-01-14 2781 if (do_memsw_account())
3e32cb2e0a12b6 Johannes Weiner 2014-12-10 2782 page_counter_uncharge(&memcg->memsw, nr_pages);
d01dd17f1067ca KAMEZAWA Hiroyuki 2012-05-29 2783 }
f0e45fb4da2974 Johannes Weiner 2020-06-03 2784 #endif
d01dd17f1067ca KAMEZAWA Hiroyuki 2012-05-29 2785

:::::: The code at line 2775 was first introduced by commit
:::::: 00501b531c4723972aa11d6d4ebcf8d6552007c8 mm: memcontrol: rewrite charge API

:::::: TO: Johannes Weiner <hannes@cmpxchg.org>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-11-05 16:30    [W:0.034 / U:0.672 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site