[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202505061113.kBQwKkqd-lkp@intel.com>
Date: Tue, 6 May 2025 12:06:26 +0800
From: kernel test robot <lkp@...el.com>
To: Jinjie Ruan <ruanjinjie@...wei.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
"Russell King (Oracle)" <rmk+kernel@...linux.org.uk>,
Linus Walleij <linus.walleij@...aro.org>
Subject: arch/arm/include/asm/stacktrace.h:48:21: error: implicit declaration
of function 'in_entry_text'
Hi Jinjie,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 95d3481af6dc90fd7175a7643fd108cdcb808ce5
commit: 2335c9cb831faba1a4efcc612886073b6f175fe4 ARM: 9407/1: Add support for STACKLEAK gcc plugin
date: 10 months ago
config: arm-randconfig-r071-20250506 (https://download.01.org/0day-ci/archive/20250506/202505061113.kBQwKkqd-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250506/202505061113.kBQwKkqd-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505061113.kBQwKkqd-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/stackleak.h:16,
from kernel/stackleak.c:13:
arch/arm/include/asm/stacktrace.h: In function 'arm_get_current_stackframe':
>> arch/arm/include/asm/stacktrace.h:48:21: error: implicit declaration of function 'in_entry_text' [-Werror=implicit-function-declaration]
frame->ex_frame = in_entry_text(frame->pc);
^~~~~~~~~~~~~
In file included from include/linux/interrupt.h:21,
from include/linux/trace_recursion.h:5,
from include/linux/ftrace.h:10,
from include/linux/kprobes.h:28,
from kernel/stackleak.c:14:
arch/arm/include/asm/sections.h: At top level:
>> arch/arm/include/asm/sections.h:14:20: error: conflicting types for 'in_entry_text'
static inline bool in_entry_text(unsigned long addr)
^~~~~~~~~~~~~
In file included from include/linux/stackleak.h:16,
from kernel/stackleak.c:13:
arch/arm/include/asm/stacktrace.h:48:21: note: previous implicit declaration of 'in_entry_text' was here
frame->ex_frame = in_entry_text(frame->pc);
^~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/in_entry_text +48 arch/arm/include/asm/stacktrace.h
2335c9cb831fab Jinjie Ruan 2024-06-27 35
9865f1d46a68a5 Nikolay Borisov 2014-06-03 36 static __always_inline
9865f1d46a68a5 Nikolay Borisov 2014-06-03 37 void arm_get_current_stackframe(struct pt_regs *regs, struct stackframe *frame)
9865f1d46a68a5 Nikolay Borisov 2014-06-03 38 {
9865f1d46a68a5 Nikolay Borisov 2014-06-03 39 frame->fp = frame_pointer(regs);
9865f1d46a68a5 Nikolay Borisov 2014-06-03 40 frame->sp = regs->ARM_sp;
9865f1d46a68a5 Nikolay Borisov 2014-06-03 41 frame->lr = regs->ARM_lr;
9865f1d46a68a5 Nikolay Borisov 2014-06-03 42 frame->pc = regs->ARM_pc;
fed240d9c97438 Masami Hiramatsu 2021-10-21 43 #ifdef CONFIG_KRETPROBES
fed240d9c97438 Masami Hiramatsu 2021-10-21 44 frame->kr_cur = NULL;
fed240d9c97438 Masami Hiramatsu 2021-10-21 45 frame->tsk = current;
fed240d9c97438 Masami Hiramatsu 2021-10-21 46 #endif
752ec621ef5c30 Li Huafei 2022-08-26 47 #ifdef CONFIG_UNWINDER_FRAME_POINTER
752ec621ef5c30 Li Huafei 2022-08-26 @48 frame->ex_frame = in_entry_text(frame->pc);
752ec621ef5c30 Li Huafei 2022-08-26 49 #endif
9865f1d46a68a5 Nikolay Borisov 2014-06-03 50 }
9865f1d46a68a5 Nikolay Borisov 2014-06-03 51
:::::: The code at line 48 was first introduced by commit
:::::: 752ec621ef5c30777958cc5eb5f1cf394f7733f4 ARM: 9234/1: stacktrace: Avoid duplicate saving of exception PC value
:::::: TO: Li Huafei <lihuafei1@...wei.com>
:::::: CC: Russell King (Oracle) <rmk+kernel@...linux.org.uk>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists