All of lore.kernel.org
 help / color / mirror / Atom feed
* mm/memcontrol.c:2774:20: warning: unused function 'cancel_charge'
@ 2023-01-18 22:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-01-18 22:41 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "gcc: unused function warning for stub function"
:::::: 

BCC: lkp@intel.com
CC: llvm@lists.linux.dev
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Shakeel Butt <shakeelb@google.com>
CC: Arnd Bergmann <arnd@arndb.de>
CC: Muchun Song <songmuchun@bytedance.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   c1649ec55708ae42091a2f1bca1ab49ecd722d55
commit: 58056f77502f3567b760c9a8fc8d2e9081515b2d memcg, kmem: further deprecate kmem.limit_in_bytes
date:   1 year, 2 months ago
:::::: branch date: 29 hours ago
:::::: commit date: 1 year, 2 months ago
config: arm-randconfig-r016-20230116 (https://download.01.org/0day-ci/archive/20230119/202301190606.E1hhhDdG-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 4196ca3278f78c6e19246e54ab0ecb364e37d66a)
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
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm olddefconfig
        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 where applicable
| Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> mm/memcontrol.c:2774:20: warning: unused function 'cancel_charge' [-Wunused-function]
   static inline void cancel_charge(struct mem_cgroup *memcg, unsigned int nr_pages)
                      ^
   mm/memcontrol.c:3339:19: warning: unused function 'mem_cgroup_move_swap_account' [-Wunused-function]
   static inline int mem_cgroup_move_swap_account(swp_entry_t entry,
                     ^
   2 warnings generated.


vim +/cancel_charge +2774 mm/memcontrol.c

c5c8b16b596e15 Muchun Song       2021-06-28  2773  
58056f77502f35 Shakeel Butt      2021-11-05 @2774  static inline void cancel_charge(struct mem_cgroup *memcg, unsigned int nr_pages)
a3032a2c15c696 Daisuke Nishimura 2009-12-15  2775  {
ce00a967377baa Johannes Weiner   2014-09-05  2776  	if (mem_cgroup_is_root(memcg))
ce00a967377baa Johannes Weiner   2014-09-05  2777  		return;
ce00a967377baa Johannes Weiner   2014-09-05  2778  
3e32cb2e0a12b6 Johannes Weiner   2014-12-10  2779  	page_counter_uncharge(&memcg->memory, nr_pages);
7941d2145abc4d Johannes Weiner   2016-01-14  2780  	if (do_memsw_account())
3e32cb2e0a12b6 Johannes Weiner   2014-12-10  2781  		page_counter_uncharge(&memcg->memsw, nr_pages);
d01dd17f1067ca KAMEZAWA Hiroyuki 2012-05-29  2782  }
d01dd17f1067ca KAMEZAWA Hiroyuki 2012-05-29  2783  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-18 22:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-18 22:41 mm/memcontrol.c:2774:20: warning: unused function 'cancel_charge' 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.