All of lore.kernel.org
 help / color / mirror / Atom feed
* mm/memcontrol.c:2774:20: error: unused function 'cancel_charge'
@ 2022-02-13 22:32 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-02-13 22:32 UTC (permalink / raw)
  To: Shakeel Butt
  Cc: llvm, kbuild-all, linux-kernel, Arnd Bergmann, Muchun Song,
	Andrew Morton, Linux Memory Management List

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@intel.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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* mm/memcontrol.c:2774:20: error: unused function 'cancel_charge'
@ 2022-02-13 22:32 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-02-13 22:32 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2413 bytes --]

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(a)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@intel.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(a)lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-13 22:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-13 22:32 mm/memcontrol.c:2774:20: error: unused function 'cancel_charge' kernel test robot
2022-02-13 22:32 ` 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.