Hi, I love your patch! Yet something to improve: [auto build test ERROR on next-20220323] [also build test ERROR on v5.17] [cannot apply to arm64/for-next/core hnaz-mm/master linus/master v5.17 v5.17-rc8 v5.17-rc7] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/andrey-konovalov-linux-dev/kasan-arm64-scs-stacktrace-collect-stack-traces-from-Shadow-Call-Stack/20220323-233436 base: b61581ae229d8eb9f21f8753be3f4011f7692384 config: arm64-defconfig (https://download.01.org/0day-ci/archive/20220324/202203241922.UDw4JHPD-lkp@xxxxxxxxx/config) compiler: aarch64-linux-gcc (GCC) 11.2.0 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 # https://github.com/0day-ci/linux/commit/da5bedb1ac7aa0b303f6d996d306e675860b6e12 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review andrey-konovalov-linux-dev/kasan-arm64-scs-stacktrace-collect-stack-traces-from-Shadow-Call-Stack/20220323-233436 git checkout da5bedb1ac7aa0b303f6d996d306e675860b6e12 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross 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@xxxxxxxxx> All errors (new ones prefixed by >>): In file included from include/asm-generic/percpu.h:7, from arch/arm64/include/asm/percpu.h:248, from include/linux/irqflags.h:17, from include/linux/spinlock.h:58, from include/linux/irq.h:14, from arch/arm64/kernel/irq.c:13: arch/arm64/kernel/irq.c: In function 'init_irq_scs': >> arch/arm64/kernel/irq.c:44:25: error: 'irq_shadow_call_stack_ptr' undeclared (first use in this function) 44 | per_cpu(irq_shadow_call_stack_ptr, cpu) = | ^~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/percpu-defs.h:219:54: note: in definition of macro '__verify_pcpu_ptr' 219 | const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \ | ^~~ include/linux/percpu-defs.h:269:35: note: in expansion of macro 'per_cpu_ptr' 269 | #define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu)) | ^~~~~~~~~~~ arch/arm64/kernel/irq.c:44:17: note: in expansion of macro 'per_cpu' 44 | per_cpu(irq_shadow_call_stack_ptr, cpu) = | ^~~~~~~ arch/arm64/kernel/irq.c:44:25: note: each undeclared identifier is reported only once for each function it appears in 44 | per_cpu(irq_shadow_call_stack_ptr, cpu) = | ^~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/percpu-defs.h:219:54: note: in definition of macro '__verify_pcpu_ptr' 219 | const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \ | ^~~ include/linux/percpu-defs.h:269:35: note: in expansion of macro 'per_cpu_ptr' 269 | #define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu)) | ^~~~~~~~~~~ arch/arm64/kernel/irq.c:44:17: note: in expansion of macro 'per_cpu' 44 | per_cpu(irq_shadow_call_stack_ptr, cpu) = | ^~~~~~~ arch/arm64/kernel/irq.c: At top level: arch/arm64/kernel/irq.c:105:13: warning: no previous prototype for 'init_IRQ' [-Wmissing-prototypes] 105 | void __init init_IRQ(void) | ^~~~~~~~ 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 -- 0-DAY CI Kernel Test Service https://01.org/lkp