From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4374108711210646735==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [melver:review/kasan-vmalloc-tagging 23/34] kernel/scs.c:35:38: error: too few arguments to function call, expected 3, have 2 Date: Wed, 08 Dec 2021 03:44:52 +0800 Message-ID: <202112080320.leXso0Ch-lkp@intel.com> List-Id: --===============4374108711210646735== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://git.kernel.org/pub/scm/linux/kernel/git/melver/linux.git re= view/kasan-vmalloc-tagging head: bd2110728a4d621f8a26a266ae1bd6ea2b8a1efa commit: d045c20eea99e4c9ca4a5bee4907f728fa9181f2 [23/34] kasan, vmalloc: ad= d vmalloc support to SW_TAGS config: arm64-randconfig-r025-20211207 (https://download.01.org/0day-ci/arc= hive/20211208/202112080320.leXso0Ch-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1c= b1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a) reproduce (this is a W=3D1 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://git.kernel.org/pub/scm/linux/kernel/git/melver/linux.git/= commit/?id=3Dd045c20eea99e4c9ca4a5bee4907f728fa9181f2 git remote add melver https://git.kernel.org/pub/scm/linux/kernel/g= it/melver/linux.git git fetch --no-tags melver review/kasan-vmalloc-tagging git checkout d045c20eea99e4c9ca4a5bee4907f728fa9181f2 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Darm64 SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> kernel/scs.c:35:38: error: too few arguments to function call, expected = 3, have 2 kasan_unpoison_vmalloc(s, SCS_SIZE); ~~~~~~~~~~~~~~~~~~~~~~ ^ include/linux/kasan.h:458:21: note: 'kasan_unpoison_vmalloc' declared he= re static inline void *kasan_unpoison_vmalloc(const void *start, ^ kernel/scs.c:81:36: error: too few arguments to function call, expected = 3, have 2 kasan_unpoison_vmalloc(s, SCS_SIZE); ~~~~~~~~~~~~~~~~~~~~~~ ^ include/linux/kasan.h:458:21: note: 'kasan_unpoison_vmalloc' declared he= re static inline void *kasan_unpoison_vmalloc(const void *start, ^ 2 errors generated. vim +35 kernel/scs.c a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 26 = a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 27 static void *__scs_alloc(int n= ode) a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 28 { a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 29 int i; a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 30 void *s; a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 31 = a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 32 for (i =3D 0; i < NR_CACHED_S= CS; i++) { a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 33 s =3D this_cpu_xchg(scs_cach= e[i], NULL); a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 34 if (s) { a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 @35 kasan_unpoison_vmalloc(s, S= CS_SIZE); a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 36 memset(s, 0, SCS_SIZE); a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 37 return s; a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 38 } a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 39 } a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 40 = a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 41 return __vmalloc_node_range(S= CS_SIZE, 1, VMALLOC_START, VMALLOC_END, a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 42 GFP_SCS, PAGE_KERNEL, = 0, node, a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 43 __builtin_return_addre= ss(0)); a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 44 } a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 45 = :::::: The code@line 35 was first introduced by commit :::::: a2abe7cbd8fe2db5ff386c968e2273d9dc6c468d scs: switch to vmapped shad= ow stacks :::::: TO: Sami Tolvanen :::::: CC: Will Deacon --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============4374108711210646735==--