* arch/arm/include/asm/stacktrace.h:48:21: error: implicit declaration of function 'in_entry_text'
@ 2025-05-06 4:06 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-06 4:06 UTC (permalink / raw)
To: Jinjie Ruan
Cc: oe-kbuild-all, linux-kernel, Russell King (Oracle), Linus Walleij
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@intel.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@huawei.com>
:::::: CC: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-05-06 4:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-06 4:06 arch/arm/include/asm/stacktrace.h:48:21: error: implicit declaration of function 'in_entry_text' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®