linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Hugh Dickins <hughd@google.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Johannes Weiner <hannes@cmpxchg.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [hnaz-mm:master 185/280] mm/swap.c:637:9: error: implicit declaration of function 'mlock_page_drain'
Date: Sat, 12 Feb 2022 01:59:12 +0800	[thread overview]
Message-ID: <202202120048.jS44WAmd-lkp@intel.com> (raw)

tree:   https://github.com/hnaz/linux-mm master
head:   f3077ea7c68baf736944f1ebf7d8bae1668a9e51
commit: 4b3b8bd6c8287d44703aaaeeba94a500821703c9 [185/280] mm/munlock: mlock_page() munlock_page() batch by pagevec
config: h8300-allnoconfig (https://download.01.org/0day-ci/archive/20220212/202202120048.jS44WAmd-lkp@intel.com/config)
compiler: h8300-linux-gcc (GCC) 11.2.0
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
        # https://github.com/hnaz/linux-mm/commit/4b3b8bd6c8287d44703aaaeeba94a500821703c9
        git remote add hnaz-mm https://github.com/hnaz/linux-mm
        git fetch --no-tags hnaz-mm master
        git checkout 4b3b8bd6c8287d44703aaaeeba94a500821703c9
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=h8300 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/swap.c: In function 'lru_add_drain_cpu':
>> mm/swap.c:637:9: error: implicit declaration of function 'mlock_page_drain' [-Werror=implicit-function-declaration]
     637 |         mlock_page_drain(cpu);
         |         ^~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/mlock_page_drain +637 mm/swap.c

   600	
   601	/*
   602	 * Drain pages out of the cpu's pagevecs.
   603	 * Either "cpu" is the current CPU, and preemption has already been
   604	 * disabled; or "cpu" is being hot-unplugged, and is already dead.
   605	 */
   606	void lru_add_drain_cpu(int cpu)
   607	{
   608		struct pagevec *pvec = &per_cpu(lru_pvecs.lru_add, cpu);
   609	
   610		if (pagevec_count(pvec))
   611			__pagevec_lru_add(pvec);
   612	
   613		pvec = &per_cpu(lru_rotate.pvec, cpu);
   614		/* Disabling interrupts below acts as a compiler barrier. */
   615		if (data_race(pagevec_count(pvec))) {
   616			unsigned long flags;
   617	
   618			/* No harm done if a racing interrupt already did this */
   619			local_lock_irqsave(&lru_rotate.lock, flags);
   620			pagevec_lru_move_fn(pvec, pagevec_move_tail_fn);
   621			local_unlock_irqrestore(&lru_rotate.lock, flags);
   622		}
   623	
   624		pvec = &per_cpu(lru_pvecs.lru_deactivate_file, cpu);
   625		if (pagevec_count(pvec))
   626			pagevec_lru_move_fn(pvec, lru_deactivate_file_fn);
   627	
   628		pvec = &per_cpu(lru_pvecs.lru_deactivate, cpu);
   629		if (pagevec_count(pvec))
   630			pagevec_lru_move_fn(pvec, lru_deactivate_fn);
   631	
   632		pvec = &per_cpu(lru_pvecs.lru_lazyfree, cpu);
   633		if (pagevec_count(pvec))
   634			pagevec_lru_move_fn(pvec, lru_lazyfree_fn);
   635	
   636		activate_page_drain(cpu);
 > 637		mlock_page_drain(cpu);
   638	}
   639	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org


                 reply	other threads:[~2022-02-11 18:00 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=202202120048.jS44WAmd-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=hannes@cmpxchg.org \
    --cc=hughd@google.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    /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