All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: mm/memcontrol.c:2774:20: warning: unused function 'cancel_charge'
Date: Thu, 19 Jan 2023 06:41:21 +0800	[thread overview]
Message-ID: <202301190606.E1hhhDdG-lkp@intel.com> (raw)

:::::: 
:::::: 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

                 reply	other threads:[~2023-01-18 22:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202301190606.E1hhhDdG-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.