mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Shakeel Butt <shakeelb@google.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org,
	Johannes Weiner <hannes@cmpxchg.org>,
	Muchun Song <songmuchun@bytedance.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [hnaz-mm:master 88/435] mm/memcontrol.c:2775:13: error: unused function 'cancel_charge'
Date: Fri, 5 Nov 2021 23:21:52 +0800	[thread overview]
Message-ID: <202111052333.8nqyEDXk-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2021-11-05 15:30 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=202111052333.8nqyEDXk-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=hannes@cmpxchg.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=llvm@lists.linux.dev \
    --cc=shakeelb@google.com \
    --cc=songmuchun@bytedance.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®