* [hnaz-mm:master 251/366] mm/damon/paddr.c:216:5: error: no previous prototype for 'damon_pa_apply_scheme'
@ 2021-10-24 16:07 kernel test robot
2021-10-25 6:47 ` SeongJae Park
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-10-24 16:07 UTC (permalink / raw)
To: SeongJae Park
Cc: kbuild-all, linux-kernel, Johannes Weiner, Andrew Morton,
Linux Memory Management List
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [hnaz-mm:master 251/366] mm/damon/paddr.c:216:5: error: no previous prototype for 'damon_pa_apply_scheme'
2021-10-24 16:07 [hnaz-mm:master 251/366] mm/damon/paddr.c:216:5: error: no previous prototype for 'damon_pa_apply_scheme' kernel test robot
@ 2021-10-25 6:47 ` SeongJae Park
0 siblings, 0 replies; 2+ messages in thread
From: SeongJae Park @ 2021-10-25 6:47 UTC (permalink / raw)
To: kernel test robot
Cc: SeongJae Park, kbuild-all, linux-kernel, Johannes Weiner,
Andrew Morton, Linux Memory Management List
On Mon, 25 Oct 2021 00:07:32 +0800 kernel test robot <lkp@intel.com> wrote:
> [-- 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
Thank you for this report! I sent a fix:
https://lore.kernel.org/linux-mm/20211025064220.13904-1-sj@kernel.org/
Thanks,
SJ
[...]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-25 6:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-24 16:07 [hnaz-mm:master 251/366] mm/damon/paddr.c:216:5: error: no previous prototype for 'damon_pa_apply_scheme' kernel test robot
2021-10-25 6:47 ` SeongJae Park
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).