* [melver:review/kasan-vmalloc-tagging 23/34] kernel/scs.c:35:38: error: too few arguments to function call, expected 3, have 2
@ 2021-12-07 19:44 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-07 19:44 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3950 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/melver/linux.git review/kasan-vmalloc-tagging
head: bd2110728a4d621f8a26a266ae1bd6ea2b8a1efa
commit: d045c20eea99e4c9ca4a5bee4907f728fa9181f2 [23/34] kasan, vmalloc: add vmalloc support to SW_TAGS
config: arm64-randconfig-r025-20211207 (https://download.01.org/0day-ci/archive/20211208/202112080320.leXso0Ch-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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://git.kernel.org/pub/scm/linux/kernel/git/melver/linux.git/commit/?id=d045c20eea99e4c9ca4a5bee4907f728fa9181f2
git remote add melver https://git.kernel.org/pub/scm/linux/kernel/git/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=$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 <lkp@intel.com>
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 here
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 here
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 node)
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 = 0; i < NR_CACHED_SCS; i++) {
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 33 s = this_cpu_xchg(scs_cache[i], NULL);
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 34 if (s) {
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 @35 kasan_unpoison_vmalloc(s, SCS_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(SCS_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_address(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 shadow stacks
:::::: TO: Sami Tolvanen <samitolvanen@google.com>
:::::: CC: Will Deacon <will@kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-07 19:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-07 19:44 [melver:review/kasan-vmalloc-tagging 23/34] kernel/scs.c:35:38: error: too few arguments to function call, expected 3, have 2 kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.