lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sat, 19 Mar 2022 10:17:30 +0800
From:   kernel test robot <lkp@...el.com>
To:     Masami Hiramatsu <mhiramat@...nel.org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
        linux-kernel@...r.kernel.org,
        "Steven Rostedt (Google)" <rostedt@...dmis.org>
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@...el.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@...nel.org>
:::::: CC: Steven Rostedt (Google) <rostedt@...dmis.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ