lib/stackdepot.c:331: undefined reference to `__irqentry_text_start'

From: kbuild test robot
Date: Thu May 07 2020 - 12:11:18 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a811c1fa0a02c062555b54651065899437bacdbe
commit: 505a0ef15f96c6c43ec719c9fc1833d98957bb39 kasan: stackdepot: move filter_irq_stacks() to stackdepot.c
date: 4 weeks ago
config: arc-randconfig-r034-20200507 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 505a0ef15f96c6c43ec719c9fc1833d98957bb39
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=arc

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

arc-elf-ld: lib/stackdepot.o: in function `filter_irq_stacks':
>> lib/stackdepot.c:331: undefined reference to `__irqentry_text_start'
>> arc-elf-ld: lib/stackdepot.c:331: undefined reference to `__irqentry_text_start'
arc-elf-ld: lib/stackdepot.o: in function `in_irqentry_text':
>> lib/stackdepot.c:323: undefined reference to `__irqentry_text_end'
>> arc-elf-ld: lib/stackdepot.c:323: undefined reference to `__irqentry_text_end'
>> arc-elf-ld: lib/stackdepot.c:324: undefined reference to `__softirqentry_text_start'
>> arc-elf-ld: lib/stackdepot.c:324: undefined reference to `__softirqentry_text_start'
>> arc-elf-ld: lib/stackdepot.c:325: undefined reference to `__softirqentry_text_end'
>> arc-elf-ld: lib/stackdepot.c:325: undefined reference to `__softirqentry_text_end'

vim +331 lib/stackdepot.c

320
321 static inline int in_irqentry_text(unsigned long ptr)
322 {
> 323 return (ptr >= (unsigned long)&__irqentry_text_start &&
> 324 ptr < (unsigned long)&__irqentry_text_end) ||
> 325 (ptr >= (unsigned long)&__softirqentry_text_start &&
326 ptr < (unsigned long)&__softirqentry_text_end);
327 }
328
329 unsigned int filter_irq_stacks(unsigned long *entries,
330 unsigned int nr_entries)
> 331 {

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip