LKML Archive on
help / color / mirror / Atom feed
* [mark:arm64/stacktrace/arch-stack-walk 9/11] arch/arm64/kernel/time.c:49:2: error: implicit declaration of function 'arch_stack_walk'
@ 2021-11-24 17:55 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-24 17:55 UTC (permalink / raw)
  To: Madhavan T. Venkataraman
  Cc: llvm, kbuild-all, linux-kernel, Mark Rutland, Mark Brown

tree: arm64/stacktrace/arch-stack-walk
head:   e982ef8a4c9b8bc2f92b7cdafbae70aa31b679d1
commit: 36fa81ac0d771ba0080197745a39dbe94562c615 [9/11] arm64: Make profile_pc() use arch_stack_walk()
config: arm64-randconfig-r031-20211124 (
compiler: clang version 14.0.0 ( 67a1c45def8a75061203461ab0060c75c864df1c)
reproduce (this is a W=1 build):
        wget -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        git remote add mark
        git fetch --no-tags mark arm64/stacktrace/arch-stack-walk
        git checkout 36fa81ac0d771ba0080197745a39dbe94562c615
        # save the config file to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 

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

All errors (new ones prefixed by >>):

>> arch/arm64/kernel/time.c:49:2: error: implicit declaration of function 'arch_stack_walk' [-Werror,-Wimplicit-function-declaration]
           arch_stack_walk(profile_pc_cb, &prof_pc, current, regs);
   arch/arm64/kernel/time.c:55:13: warning: no previous prototype for function 'time_init' [-Wmissing-prototypes]
   void __init time_init(void)
   arch/arm64/kernel/time.c:55:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void __init time_init(void)
   1 warning and 1 error generated.

vim +/arch_stack_walk +49 arch/arm64/kernel/time.c

    45	unsigned long profile_pc(struct pt_regs *regs)
    46	{
    47		unsigned long prof_pc = 0;
  > 49		arch_stack_walk(profile_pc_cb, &prof_pc, current, regs);
    51		return prof_pc;
    52	}
    53	EXPORT_SYMBOL(profile_pc);

0-DAY CI Kernel Test Service, Intel Corporation

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-24 17:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-24 17:55 [mark:arm64/stacktrace/arch-stack-walk 9/11] arch/arm64/kernel/time.c:49:2: error: implicit declaration of function 'arch_stack_walk' 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;
as well as URLs for NNTP newsgroup(s).