From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: oe-kbuild-all@lists.linux.dev,
"Steven Rostedt (Google)" <rostedt@goodmis.org>
Subject: [trace:trace/core 21/22] include/linux/ftrace.h:47:47: warning: 'struct fgraph_ret_regs' declared inside parameter list will not be visible outside of this definition or declaration
Date: Wed, 12 Jul 2023 04:02:52 +0800 [thread overview]
Message-ID: <202307120334.Fn8EEmph-lkp@intel.com> (raw)
tree: git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace trace/core
head: 46b77ea28faeed56f1d1b63f9049c40b9eb3cbf5
commit: 55803539764e831c4e642de1c6634f8f645a10aa [21/22] tracing: arm64: Avoid missing-prototype warnings
config: i386-defconfig (https://download.01.org/0day-ci/archive/20230712/202307120334.Fn8EEmph-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230712/202307120334.Fn8EEmph-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307120334.Fn8EEmph-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/perf_event.h:52,
from include/linux/trace_events.h:10,
from include/trace/syscall.h:7,
from include/linux/syscalls.h:88,
from arch/x86/entry/syscall_32.c:7:
>> include/linux/ftrace.h:47:47: warning: 'struct fgraph_ret_regs' declared inside parameter list will not be visible outside of this definition or declaration
47 | unsigned long ftrace_return_to_handler(struct fgraph_ret_regs *ret_regs);
| ^~~~~~~~~~~~~~~
--
In file included from include/linux/perf_event.h:52,
from include/linux/trace_events.h:10,
from include/trace/syscall.h:7,
from include/linux/syscalls.h:88,
from include/linux/entry-common.h:7,
from arch/x86/entry/common.c:13:
>> include/linux/ftrace.h:47:47: warning: 'struct fgraph_ret_regs' declared inside parameter list will not be visible outside of this definition or declaration
47 | unsigned long ftrace_return_to_handler(struct fgraph_ret_regs *ret_regs);
| ^~~~~~~~~~~~~~~
arch/x86/entry/common.c:119:24: warning: no previous prototype for 'do_int80_syscall_32' [-Wmissing-prototypes]
119 | __visible noinstr void do_int80_syscall_32(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~
arch/x86/entry/common.c:186:24: warning: no previous prototype for 'do_fast_syscall_32' [-Wmissing-prototypes]
186 | __visible noinstr long do_fast_syscall_32(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~
arch/x86/entry/common.c:238:24: warning: no previous prototype for 'do_SYSENTER_32' [-Wmissing-prototypes]
238 | __visible noinstr long do_SYSENTER_32(struct pt_regs *regs)
| ^~~~~~~~~~~~~~
vim +47 include/linux/ftrace.h
45
46 #ifdef CONFIG_HAVE_FUNCTION_GRAPH_RETVAL
> 47 unsigned long ftrace_return_to_handler(struct fgraph_ret_regs *ret_regs);
48 #else
49 unsigned long ftrace_return_to_handler(unsigned long frame_pointer);
50 #endif
51
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-07-11 20:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202307120334.Fn8EEmph-lkp@intel.com \
--to=lkp@intel.com \
--cc=arnd@arndb.de \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.