All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
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	[thread overview]
Message-ID: <202112080320.leXso0Ch-lkp@intel.com> (raw)

[-- 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

                 reply	other threads:[~2021-12-07 19:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202112080320.leXso0Ch-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.