Re: + mm-mempolicy-wire-up-syscall-set_mempolicy_home_node.patch added to -mm tree
From: Aneesh Kumar K.V <hidden>
Date: 2021-12-06 06:14:49
Also in:
llvm, oe-kbuild-all
kernel test robot [off-list ref] writes:
Hi, I love your patch! Perhaps something to improve: [auto build test WARNING on arm64/for-next/core] [also build test WARNING on deller-parisc/for-next linus/master v5.16-rc3] [cannot apply to geert-m68k/for-next powerpc/next s390/features arnd-asm-generic/master tip/x86/asm davem-sparc/master next-20211203] [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/akpm-linux-foundation-org/mm-mempolicy-wire-up-syscall-set_mempolicy_home_node-patch-added-to-mm-tree/20211203-065847 base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core config: arm64-randconfig-r025-20211203 (https://download.01.org/0day-ci/archive/20211206/202112060718.JbZsyJcP-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1e328b06c15273edf4a40a27ca24931b5efb3a87) 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/d7bb34dec7840474ed1ad87136b47eb1ea0c8bee git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review akpm-linux-foundation-org/mm-mempolicy-wire-up-syscall-set_mempolicy_home_node-patch-added-to-mm-tree/20211203-065847 git checkout d7bb34dec7840474ed1ad87136b47eb1ea0c8bee # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <redacted> All warnings (new ones prefixed by >>): asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \ ^ <scratch space>:161:1: note: expanded from here __arm64_sys_process_madvise ^ 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_process_mrelease' [-Wmissing-prototypes] COND_SYSCALL(process_mrelease); ^ 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_process_mrelease
These build warnings with W=1 are related to arm header includes. arm64 expand syscall macro such that '__arm64_' is added to the syscall handler name. Hence the include linux/syscall.h that have below prototype is not sufficient. asmlinkage long sys_set_mempolicy_home_node(unsigned long start, unsigned long len, unsigned long home_node, unsigned long flags); That should be fixed outside this series. -aneesh