lkml.org 
[lkml]   [2022]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[ammarfaizi2-block:rostedt/linux-trace/ftrace/core 53/57] arch/arm64/kernel/probes/rethook.c:11:22: warning: no previous prototype for function 'arch_rethook_trampoline_callback'
tree:   https://github.com/ammarfaizi2/linux-block rostedt/linux-trace/ftrace/core
head: 03cd03b5c3f9836e625a99fa603b4683dc1ebb47
commit: 6b142311f91040c847702773bdf441afdc658984 [53/57] fprobe: Add exit_handler support
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20220319/202203191007.YShhz8AJ-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a6e70e4056dff962ec634c5bd4f2f4105a0bef71)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/ammarfaizi2/linux-block/commit/6b142311f91040c847702773bdf441afdc658984
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block rostedt/linux-trace/ftrace/core
git checkout 6b142311f91040c847702773bdf441afdc658984
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kernel/probes/

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

All warnings (new ones prefixed by >>):

>> arch/arm64/kernel/probes/rethook.c:11:22: warning: no previous prototype for function 'arch_rethook_trampoline_callback' [-Wmissing-prototypes]
unsigned long __used arch_rethook_trampoline_callback(struct pt_regs *regs)
^
arch/arm64/kernel/probes/rethook.c:11:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
unsigned long __used arch_rethook_trampoline_callback(struct pt_regs *regs)
^
static
1 warning generated.


vim +/arch_rethook_trampoline_callback +11 arch/arm64/kernel/probes/rethook.c

371ce29069762d9 Masami Hiramatsu 2022-03-15 9
371ce29069762d9 Masami Hiramatsu 2022-03-15 10 /* This is called from arch_rethook_trampoline() */
371ce29069762d9 Masami Hiramatsu 2022-03-15 @11 unsigned long __used arch_rethook_trampoline_callback(struct pt_regs *regs)
371ce29069762d9 Masami Hiramatsu 2022-03-15 12 {
371ce29069762d9 Masami Hiramatsu 2022-03-15 13 return rethook_trampoline_handler(regs, regs->regs[29]);
371ce29069762d9 Masami Hiramatsu 2022-03-15 14 }
371ce29069762d9 Masami Hiramatsu 2022-03-15 15 NOKPROBE_SYMBOL(arch_rethook_trampoline_callback);
371ce29069762d9 Masami Hiramatsu 2022-03-15 16

:::::: The code at line 11 was first introduced by commit
:::::: 371ce29069762d992f8dcaa9ecabb6ff78a73f22 arm64: rethook: Add arm64 rethook implementation

:::::: TO: Masami Hiramatsu <mhiramat@kernel.org>
:::::: CC: Steven Rostedt (Google) <rostedt@goodmis.org>

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

\
 
 \ /
  Last update: 2022-03-19 03:19    [W:0.051 / U:1.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site