Re: [hnaz-mm:master 251/366] mm/damon/paddr.c:216:5: error: no previous prototype for 'damon_pa_apply_scheme'

From: SeongJae Park
Date: Mon Oct 25 2021 - 02:47:31 EST


On Mon, 25 Oct 2021 00:07:32 +0800 kernel test robot <lkp@xxxxxxxxx> 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@xxxxxxxxx>
>
> 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@xxxxxxxxxx/


Thanks,
SJ

[...]