Re: [PATCH 2/7] x86/tracing: pass ftrace_regs to function_graph_enter()

From: kernel test robot
Date: Thu Sep 05 2024 - 04:58:36 EST


Hi Sven,

kernel test robot noticed the following build warnings:

[auto build test WARNING on s390/features]
[also build test WARNING on tip/x86/core linus/master v6.11-rc6 next-20240904]
[cannot apply to rostedt-trace/for-next rostedt-trace/for-next-urgent]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Sven-Schnelle/tracing-add-ftrace_regs-to-function_graph_enter/20240904-150232
base: https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git features
patch link: https://lore.kernel.org/r/20240904065908.1009086-3-svens%40linux.ibm.com
patch subject: [PATCH 2/7] x86/tracing: pass ftrace_regs to function_graph_enter()
config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20240905/202409051620.5YBbYREt-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240905/202409051620.5YBbYREt-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409051620.5YBbYREt-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

In file included from include/linux/ftrace.h:23,
from include/linux/kprobes.h:28,
from arch/x86/kernel/process_64.c:35:
>> arch/x86/include/asm/ftrace.h:108:64: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
108 | unsigned long frame_pointer, struct ftrace_regs *regs);
| ^~~~~~~~~~~


vim +108 arch/x86/include/asm/ftrace.h

106
107 void prepare_ftrace_return(unsigned long ip, unsigned long *parent,
> 108 unsigned long frame_pointer, struct ftrace_regs *regs);
109

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki