Hi Suren,
I love your patch! Perhaps something to improve:
[auto build test WARNING on arm64/for-next/core]
[also build test WARNING on tip/x86/asm linus/master v5.13-rc7]
[cannot apply to hnaz-linux-mm/master next-20210623]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Suren-Baghdasaryan/mm-introduce-...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: arm64-randconfig-r006-20210622 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
7c8a507272587f181ec29401453949ebcd8fec65)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
#
https://github.com/0day-ci/linux/commit/64bd00602e706bc1b2e2267ca1434646c...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Suren-Baghdasaryan/mm-introduce-process_reap-system-call/20210624-032923
git checkout 64bd00602e706bc1b2e2267ca1434646c0900fa1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:152:1: note: expanded from here
__arm64_sys_msync
^
kernel/sys_ni.c:284:1: note: declare 'static' if the function is not intended
to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:285:1: warning: no previous prototype for function
'__arm64_sys_mlock' [-Wmissing-prototypes]
COND_SYSCALL(mlock);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:153:1: note: expanded from here
__arm64_sys_mlock
^
kernel/sys_ni.c:285:1: note: declare 'static' if the function is not intended
to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:286:1: warning: no previous prototype for function
'__arm64_sys_munlock' [-Wmissing-prototypes]
COND_SYSCALL(munlock);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:154:1: note: expanded from here
__arm64_sys_munlock
^
kernel/sys_ni.c:286:1: note: declare 'static' if the function is not intended
to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:287:1: warning: no previous prototype for function
'__arm64_sys_mlockall' [-Wmissing-prototypes]
COND_SYSCALL(mlockall);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:155:1: note: expanded from here
__arm64_sys_mlockall
^
kernel/sys_ni.c:287:1: note: declare 'static' if the function is not intended
to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:288:1: warning: no previous prototype for function
'__arm64_sys_munlockall' [-Wmissing-prototypes]
COND_SYSCALL(munlockall);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:156:1: note: expanded from here
__arm64_sys_munlockall
^
kernel/sys_ni.c:288:1: note: declare 'static' if the function is not intended
to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:289:1: warning: no previous prototype for function
'__arm64_sys_mincore' [-Wmissing-prototypes]
COND_SYSCALL(mincore);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:157:1: note: expanded from here
__arm64_sys_mincore
^
kernel/sys_ni.c:289:1: note: declare 'static' if the function is not intended
to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:290:1: warning: no previous prototype for function
'__arm64_sys_madvise' [-Wmissing-prototypes]
COND_SYSCALL(madvise);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:158:1: note: expanded from here
__arm64_sys_madvise
^
kernel/sys_ni.c:290:1: note: declare 'static' if the function is not intended
to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:291:1: warning: no previous prototype for function
'__arm64_sys_process_madvise' [-Wmissing-prototypes]
COND_SYSCALL(process_madvise);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:159:1: note: expanded from here
__arm64_sys_process_madvise
^
kernel/sys_ni.c:291:1: note: declare 'static' if the function is not intended
to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
> kernel/sys_ni.c:292:1: warning: no previous prototype for
function '__arm64_sys_process_reap' [-Wmissing-prototypes]
COND_SYSCALL(process_reap);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:160:1: note: expanded from here
__arm64_sys_process_reap
^
kernel/sys_ni.c:292:1: note: declare 'static' if the function is not intended
to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:293:1: warning: no previous prototype for function
'__arm64_sys_remap_file_pages' [-Wmissing-prototypes]
COND_SYSCALL(remap_file_pages);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:161:1: note: expanded from here
__arm64_sys_remap_file_pages
^
kernel/sys_ni.c:293:1: note: declare 'static' if the function is not intended
to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:294:1: warning: no previous prototype for function
'__arm64_sys_mbind' [-Wmissing-prototypes]
COND_SYSCALL(mbind);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:162:1: note: expanded from here
__arm64_sys_mbind
^
kernel/sys_ni.c:294:1: note: declare 'static' if the function is not intended
to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:295:1: warning: no previous prototype for function
'__arm64_compat_sys_mbind' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(mbind);
^
arch/arm64/include/asm/syscall_wrapper.h:41:25: note: expanded from macro
'COND_SYSCALL_COMPAT'
asmlinkage long __weak __arm64_compat_sys_##name(const struct pt_regs *regs)
\
^
<scratch space>:163:1: note: expanded from here
__arm64_compat_sys_mbind
^
kernel/sys_ni.c:295:1: note: declare 'static' if the function is not intended
to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:41:13: note: expanded from macro
'COND_SYSCALL_COMPAT'
asmlinkage long __weak __arm64_compat_sys_##name(const struct pt_regs *regs)
\
^
kernel/sys_ni.c:296:1: warning: no previous prototype for function
'__arm64_sys_get_mempolicy' [-Wmissing-prototypes]
COND_SYSCALL(get_mempolicy);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:164:1: note: expanded from here
__arm64_sys_get_mempolicy
^
kernel/sys_ni.c:296:1: note: declare 'static' if the function is not intended
to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:297:1: warning: no previous prototype for function
'__arm64_compat_sys_get_mempolicy' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(get_mempolicy);
^
arch/arm64/include/asm/syscall_wrapper.h:41:25: note: expanded from macro
'COND_SYSCALL_COMPAT'
asmlinkage long __weak __arm64_compat_sys_##name(const struct pt_regs *regs)
\
^
<scratch space>:165:1: note: expanded from here
__arm64_compat_sys_get_mempolicy
^
kernel/sys_ni.c:297:1: note: declare 'static' if the function is not intended
to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:41:13: note: expanded from macro
'COND_SYSCALL_COMPAT'
asmlinkage long __weak __arm64_compat_sys_##name(const struct pt_regs *regs)
\
^
kernel/sys_ni.c:298:1: warning: no previous prototype for function
'__arm64_sys_set_mempolicy' [-Wmissing-prototypes]
COND_SYSCALL(set_mempolicy);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:166:1: note: expanded from here
__arm64_sys_set_mempolicy
^
kernel/sys_ni.c:298:1: note: declare 'static' if the function is not intended
to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro
'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:299:1: warning: no previous prototype for function
'__arm64_compat_sys_set_mempolicy' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(set_mempolicy);
^
arch/arm64/include/asm/syscall_wrapper.h:41:25: note: expanded from macro
'COND_SYSCALL_COMPAT'
asmlinkage long __weak __arm64_compat_sys_##name(const struct pt_regs *regs)
\
^
<scratch space>:167:1: note: expanded from here
__arm64_compat_sys_set_mempolicy
^
kernel/sys_ni.c:299:1: note: declare 'static' if the function is not intended
to be used outside of this translation unit
vim +/__arm64_sys_process_reap +292 kernel/sys_ni.c
279
280 /* mm/, CONFIG_MMU only */
281 COND_SYSCALL(swapon);
282 COND_SYSCALL(swapoff);
283 COND_SYSCALL(mprotect);
284 COND_SYSCALL(msync);
285 COND_SYSCALL(mlock);
286 COND_SYSCALL(munlock);
287 COND_SYSCALL(mlockall);
288 COND_SYSCALL(munlockall);
289 COND_SYSCALL(mincore);
290 COND_SYSCALL(madvise);
291 COND_SYSCALL(process_madvise);
292 COND_SYSCALL(process_reap);
293 COND_SYSCALL(remap_file_pages);
294 COND_SYSCALL(mbind);
295 COND_SYSCALL_COMPAT(mbind);
296 COND_SYSCALL(get_mempolicy);
297 COND_SYSCALL_COMPAT(get_mempolicy);
298 COND_SYSCALL(set_mempolicy);
299 COND_SYSCALL_COMPAT(set_mempolicy);
300 COND_SYSCALL(migrate_pages);
301 COND_SYSCALL_COMPAT(migrate_pages);
302 COND_SYSCALL(move_pages);
303 COND_SYSCALL_COMPAT(move_pages);
304
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org