* [hnaz-mm:master 88/435] mm/memcontrol.c:2775:13: error: unused function 'cancel_charge'
@ 2021-11-05 15:21 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-05 15:21 UTC (permalink / raw)
To: Shakeel Butt
Cc: llvm, kbuild-all, linux-kernel, Johannes Weiner, Muchun Song,
Andrew Morton, Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 3016 bytes --]
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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27631 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-05 15:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-05 15:21 [hnaz-mm:master 88/435] mm/memcontrol.c:2775:13: error: unused function 'cancel_charge' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).