All of lore.kernel.org
 help / color / mirror / Atom feed
* [mhiramat:kprobes/kretprobe-stackfix-v6 13/13] arch/x86/kernel/kprobes/core.c:1077:6: warning: no previous prototype for function 'arch_kretprobe_fixup_return'
@ 2021-05-26 12:38 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-26 12:38 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3360 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mhiramat/linux.git kprobes/kretprobe-stackfix-v6
head:   b00ac79b16912c6e48498a0931f9d02fe820a2e0
commit: b00ac79b16912c6e48498a0931f9d02fe820a2e0 [13/13] x86/kprobes: Fixup return address in generic trampoline handler
config: x86_64-randconfig-a014-20210526 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 99155e913e9bad5f7f8a247f8bb3a3ff3da74af1)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/mhiramat/linux.git/commit/?id=b00ac79b16912c6e48498a0931f9d02fe820a2e0
        git remote add mhiramat https://git.kernel.org/pub/scm/linux/kernel/git/mhiramat/linux.git
        git fetch --no-tags mhiramat kprobes/kretprobe-stackfix-v6
        git checkout b00ac79b16912c6e48498a0931f9d02fe820a2e0
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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/x86/kernel/kprobes/core.c:1077:6: warning: no previous prototype for function 'arch_kretprobe_fixup_return' [-Wmissing-prototypes]
   void arch_kretprobe_fixup_return(struct pt_regs *regs,
        ^
   arch/x86/kernel/kprobes/core.c:1077:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void arch_kretprobe_fixup_return(struct pt_regs *regs,
   ^
   static 
   arch/x86/kernel/kprobes/core.c:1091:23: warning: no previous prototype for function 'trampoline_handler' [-Wmissing-prototypes]
   __used __visible void trampoline_handler(struct pt_regs *regs)
                         ^
   arch/x86/kernel/kprobes/core.c:1091:18: note: declare 'static' if the function is not intended to be used outside of this translation unit
   __used __visible void trampoline_handler(struct pt_regs *regs)
                    ^
                    static 
   2 warnings generated.
--
>> kernel/kprobes.c:1902:13: warning: no previous prototype for function 'arch_kretprobe_fixup_return' [-Wmissing-prototypes]
   void __weak arch_kretprobe_fixup_return(struct pt_regs *regs,
               ^
   kernel/kprobes.c:1902:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void __weak arch_kretprobe_fixup_return(struct pt_regs *regs,
   ^
   static 
   1 warning generated.


vim +/arch_kretprobe_fixup_return +1077 arch/x86/kernel/kprobes/core.c

  1076	
> 1077	void arch_kretprobe_fixup_return(struct pt_regs *regs,
  1078					 unsigned long correct_ret_addr)
  1079	{
  1080		unsigned long *frame_pointer;
  1081	
  1082		frame_pointer = ((unsigned long *)&regs->sp) + 1;
  1083	
  1084		/* Replace fake return address with real one. */
  1085		*frame_pointer = correct_ret_addr;
  1086	}
  1087	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37534 bytes --]

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

only message in thread, other threads:[~2021-05-26 12:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 12:38 [mhiramat:kprobes/kretprobe-stackfix-v6 13/13] arch/x86/kernel/kprobes/core.c:1077:6: warning: no previous prototype for function 'arch_kretprobe_fixup_return' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.