[hnaz-mm:master 251/366] mm/damon/paddr.c:216:5: error: no previous prototype for 'damon_pa_apply_scheme'
From: kernel test robot <hidden>
Date: 2021-10-24 16:08:26
Also in:
lkml, oe-kbuild-all
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 <redacted> All errors (new ones prefixed by >>):
quoted
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 Attachments
- .config.gz [application/gzip] 69513 bytes