lkml.org 
[lkml]   [2022]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[hnaz-mm:master 28/122] arch/arm64/kernel/irq.c:44:11: error: use of undeclared identifier 'irq_shadow_call_stack_ptr'
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

\
 
 \ /
  Last update: 2022-03-31 14:10    [W:0.061 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site