linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: SeongJae Park <sj@kernel.org>
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 251/366] mm/damon/paddr.c:216:5: error: no previous prototype for 'damon_pa_apply_scheme'
Date: Mon, 25 Oct 2021 00:07:32 +0800	[thread overview]
Message-ID: <202110250029.5rftt73s-lkp@intel.com> (raw)

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

tree:   https://github.com/hnaz/linux-mm master
head:   468edaa91589af9aebd54b32f019bf309cf67e78
commit: ccd554f15bb1cd977d740c1ea8241ecf95108c94 [251/366] mm/damon/paddr: support the pageout scheme
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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/ccd554f15bb1cd977d740c1ea8241ecf95108c94
        git remote add hnaz-mm https://github.com/hnaz/linux-mm
        git fetch --no-tags hnaz-mm master
        git checkout ccd554f15bb1cd977d740c1ea8241ecf95108c94
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc 

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/damon/paddr.c:216:5: error: no previous prototype for 'damon_pa_apply_scheme' [-Werror=missing-prototypes]
     216 | int damon_pa_apply_scheme(struct damon_ctx *ctx, struct damon_target *t,
         |     ^~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/damon_pa_apply_scheme +216 mm/damon/paddr.c

   215	
 > 216	int damon_pa_apply_scheme(struct damon_ctx *ctx, struct damon_target *t,
   217			struct damon_region *r, struct damos *scheme)
   218	{
   219		unsigned long addr;
   220		LIST_HEAD(page_list);
   221	
   222		if (scheme->action != DAMOS_PAGEOUT)
   223			return -EINVAL;
   224	
   225		for (addr = r->ar.start; addr < r->ar.end; addr += PAGE_SIZE) {
   226			struct page *page = damon_get_page(PHYS_PFN(addr));
   227	
   228			if (!page)
   229				continue;
   230	
   231			ClearPageReferenced(page);
   232			test_and_clear_page_young(page);
   233			if (isolate_lru_page(page)) {
   234				put_page(page);
   235				continue;
   236			}
   237			if (PageUnevictable(page)) {
   238				putback_lru_page(page);
   239			} else {
   240				list_add(&page->lru, &page_list);
   241				put_page(page);
   242			}
   243		}
   244		reclaim_pages(&page_list);
   245		cond_resched();
   246		return 0;
   247	}
   248	

---
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: 69513 bytes --]

             reply	other threads:[~2021-10-24 16:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-24 16:07 kernel test robot [this message]
2021-10-25  6:47 ` [hnaz-mm:master 251/366] mm/damon/paddr.c:216:5: error: no previous prototype for 'damon_pa_apply_scheme' SeongJae Park

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=202110250029.5rftt73s-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=sj@kernel.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;
as well as URLs for NNTP newsgroup(s).