tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dfa377c35d70c31139b1274ec49f87d380996c42 commit: ecb8ac8b1f146915aa6b96449b66dd48984caacc mm/madvise: introduce process_madvise() syscall: an external memory hinting API date: 10 months ago config: arm64-randconfig-r013-20210814 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 62df4df41c939205b2dc0a2a3bfb75b8c1ed74fa) 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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ecb8ac8b1f146915aa6b96449b66dd48984caacc git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout ecb8ac8b1f146915aa6b96449b66dd48984caacc # 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@xxxxxxxxx> All warnings (new ones prefixed by >>): asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \ ^ <scratch space>:145:1: note: expanded from here __arm64_sys_mprotect ^ kernel/sys_ni.c:275: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:276:1: warning: no previous prototype for function '__arm64_sys_msync' [-Wmissing-prototypes] COND_SYSCALL(msync); ^ 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>:146:1: note: expanded from here __arm64_sys_msync ^ kernel/sys_ni.c:276: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:277: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>:147:1: note: expanded from here __arm64_sys_mlock ^ kernel/sys_ni.c:277: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:278: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>:148:1: note: expanded from here __arm64_sys_munlock ^ kernel/sys_ni.c:278: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:279: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>:149:1: note: expanded from here __arm64_sys_mlockall ^ kernel/sys_ni.c:279: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:280: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>:150:1: note: expanded from here __arm64_sys_munlockall ^ kernel/sys_ni.c:280: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:281: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>:151:1: note: expanded from here __arm64_sys_mincore ^ kernel/sys_ni.c:281: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:282: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>:152:1: note: expanded from here __arm64_sys_madvise ^ kernel/sys_ni.c:282: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:283: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>:153:1: note: expanded from here __arm64_sys_process_madvise ^ kernel/sys_ni.c:283: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:284: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>:154:1: note: expanded from here __arm64_sys_remap_file_pages ^ 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_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>:155:1: note: expanded from here __arm64_sys_mbind ^ 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_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>:156:1: note: expanded from here __arm64_compat_sys_mbind ^ 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: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:287: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>:157:1: note: expanded from here __arm64_sys_get_mempolicy ^ 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_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>:158:1: note: expanded from here __arm64_compat_sys_get_mempolicy ^ 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: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:289: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>:159:1: note: expanded from here __arm64_sys_set_mempolicy ^ 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_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>:160:1: note: expanded from here __arm64_compat_sys_set_mempolicy ^ kernel/sys_ni.c:290:1: note: declare 'static' if the function is not intended to be used outside of this translation unit vim +/__arm64_sys_process_madvise +283 kernel/sys_ni.c 271 272 /* mm/, CONFIG_MMU only */ 273 COND_SYSCALL(swapon); 274 COND_SYSCALL(swapoff); 275 COND_SYSCALL(mprotect); 276 COND_SYSCALL(msync); 277 COND_SYSCALL(mlock); 278 COND_SYSCALL(munlock); 279 COND_SYSCALL(mlockall); 280 COND_SYSCALL(munlockall); 281 COND_SYSCALL(mincore); > 282 COND_SYSCALL(madvise); > 283 COND_SYSCALL(process_madvise); 284 COND_SYSCALL(remap_file_pages); 285 COND_SYSCALL(mbind); 286 COND_SYSCALL_COMPAT(mbind); 287 COND_SYSCALL(get_mempolicy); 288 COND_SYSCALL_COMPAT(get_mempolicy); 289 COND_SYSCALL(set_mempolicy); 290 COND_SYSCALL_COMPAT(set_mempolicy); 291 COND_SYSCALL(migrate_pages); 292 COND_SYSCALL_COMPAT(migrate_pages); 293 COND_SYSCALL(move_pages); 294 COND_SYSCALL_COMPAT(move_pages); 295 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip