From: kernel test robot <lkp@intel.com>
To: Andrey Konovalov <andreyknvl@google.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org,
Johannes Weiner <hannes@cmpxchg.org>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [hnaz-mm:master 28/122] arch/arm64/kernel/irq.c:44:11: error: use of undeclared identifier 'irq_shadow_call_stack_ptr'
Date: Thu, 31 Mar 2022 20:08:44 +0800 [thread overview]
Message-ID: <202203312036.a74e2QM9-lkp@intel.com> (raw)
tree: https://github.com/hnaz/linux-mm master
head: 074b4ea9811e2c47ae1ecada177629c19fa56d59
commit: da4561bd9c6b23e9579b85ffaced3f3b0b8dcd4c [28/122] arm64, scs: save scs_sp values per-cpu when switching stacks
config: arm64-randconfig-r012-20220331 (https://download.01.org/0day-ci/archive/20220331/202203312036.a74e2QM9-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 881350a92d821d4f8e4fa648443ed1d17e251188)
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/hnaz/linux-mm/commit/da4561bd9c6b23e9579b85ffaced3f3b0b8dcd4c
git remote add hnaz-mm https://github.com/hnaz/linux-mm
git fetch --no-tags hnaz-mm master
git checkout da4561bd9c6b23e9579b85ffaced3f3b0b8dcd4c
# 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 arch/arm64/kernel/
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 >>):
>> arch/arm64/kernel/irq.c:44:11: error: use of undeclared identifier 'irq_shadow_call_stack_ptr'
per_cpu(irq_shadow_call_stack_ptr, cpu) =
^
>> arch/arm64/kernel/irq.c:44:11: error: use of undeclared identifier 'irq_shadow_call_stack_ptr'
>> arch/arm64/kernel/irq.c:44:11: error: use of undeclared identifier 'irq_shadow_call_stack_ptr'
>> arch/arm64/kernel/irq.c:44:3: error: indirection requires pointer operand ('void' invalid)
per_cpu(irq_shadow_call_stack_ptr, cpu) =
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:269:28: note: expanded from macro 'per_cpu'
#define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/irq.c:105:13: warning: no previous prototype for function 'init_IRQ' [-Wmissing-prototypes]
void __init init_IRQ(void)
^
arch/arm64/kernel/irq.c:105:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init init_IRQ(void)
^
static
1 warning and 4 errors generated.
vim +/irq_shadow_call_stack_ptr +44 arch/arm64/kernel/irq.c
ac20ffbb0279aa Sami Tolvanen 2020-11-30 35
ac20ffbb0279aa Sami Tolvanen 2020-11-30 36 static void init_irq_scs(void)
ac20ffbb0279aa Sami Tolvanen 2020-11-30 37 {
ac20ffbb0279aa Sami Tolvanen 2020-11-30 38 int cpu;
ac20ffbb0279aa Sami Tolvanen 2020-11-30 39
ac20ffbb0279aa Sami Tolvanen 2020-11-30 40 if (!IS_ENABLED(CONFIG_SHADOW_CALL_STACK))
ac20ffbb0279aa Sami Tolvanen 2020-11-30 41 return;
ac20ffbb0279aa Sami Tolvanen 2020-11-30 42
ac20ffbb0279aa Sami Tolvanen 2020-11-30 43 for_each_possible_cpu(cpu)
ac20ffbb0279aa Sami Tolvanen 2020-11-30 @44 per_cpu(irq_shadow_call_stack_ptr, cpu) =
ac20ffbb0279aa Sami Tolvanen 2020-11-30 45 scs_alloc(cpu_to_node(cpu));
ac20ffbb0279aa Sami Tolvanen 2020-11-30 46 }
ac20ffbb0279aa Sami Tolvanen 2020-11-30 47
:::::: The code at line 44 was first introduced by commit
:::::: ac20ffbb0279aae7be48567fb734eae7d050769e arm64: scs: use vmapped IRQ and SDEI shadow stacks
:::::: TO: Sami Tolvanen <samitolvanen@google.com>
:::::: CC: Will Deacon <will@kernel.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-03-31 12:09 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=202203312036.a74e2QM9-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=andreyknvl@google.com \
--cc=hannes@cmpxchg.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=llvm@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox