[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202202140629.MxlIbXOG-lkp@intel.com>
Date: Mon, 14 Feb 2022 06:32:40 +0800
From: kernel test robot <lkp@...el.com>
To: Shakeel Butt <shakeelb@...gle.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org, Arnd Bergmann <arnd@...db.de>,
Muchun Song <songmuchun@...edance.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Linux Memory Management List <linux-mm@...ck.org>
Subject: mm/memcontrol.c:2774:20: error: unused function 'cancel_charge'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 754e0b0e35608ed5206d6a67a791563c631cec07
commit: 58056f77502f3567b760c9a8fc8d2e9081515b2d memcg, kmem: further deprecate kmem.limit_in_bytes
date: 3 months ago
config: arm-randconfig-r005-20220213 (https://download.01.org/0day-ci/archive/20220214/202202140629.MxlIbXOG-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project ea071884b0cc7210b3cc5fe858f0e892a779a23b)
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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=58056f77502f3567b760c9a8fc8d2e9081515b2d
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 58056f77502f3567b760c9a8fc8d2e9081515b2d
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
>> mm/memcontrol.c:2774:20: error: unused function 'cancel_charge' [-Werror,-Wunused-function]
static inline void cancel_charge(struct mem_cgroup *memcg, unsigned int nr_pages)
^
mm/memcontrol.c:3339: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 +2774 mm/memcontrol.c
2773
> 2774 static inline void cancel_charge(struct mem_cgroup *memcg, unsigned int nr_pages)
2775 {
2776 if (mem_cgroup_is_root(memcg))
2777 return;
2778
2779 page_counter_uncharge(&memcg->memory, nr_pages);
2780 if (do_memsw_account())
2781 page_counter_uncharge(&memcg->memsw, nr_pages);
2782 }
2783
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists