* [jolsa-perf:bpf/tracing_multi 5/22] kernel/trace/rv/../trace.h:907:24: error: incomplete definition of type 'struct ftrace_hash'
@ 2025-07-18 5:18 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-18 5:18 UTC (permalink / raw)
To: Jiri Olsa; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/tracing_multi
head: d0503d4013c49a3fde856947dfffe6c80c178eb1
commit: 1fcafd4d20b5c6b573c4a040b473d15bdb9c26a2 [5/22] ftrace: Export some of hash related functions
config: i386-buildonly-randconfig-2004-20250718 (https://download.01.org/0day-ci/archive/20250718/202507180746.681PM7BT-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250718/202507180746.681PM7BT-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/202507180746.681PM7BT-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from kernel/trace/rv/rv.c:151:
In file included from kernel/trace/rv/rv.h:9:
In file included from kernel/trace/rv/../trace.h:13:
include/linux/ftrace.h:575:5: warning: no previous prototype for function 'register_ftrace_direct_hash' [-Wmissing-prototypes]
575 | int register_ftrace_direct_hash(struct ftrace_ops *ops, struct ftrace_hash *hash)
| ^
include/linux/ftrace.h:575:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
575 | int register_ftrace_direct_hash(struct ftrace_ops *ops, struct ftrace_hash *hash)
| ^
| static
include/linux/ftrace.h:580:5: warning: no previous prototype for function 'unregister_ftrace_direct_hash' [-Wmissing-prototypes]
580 | int unregister_ftrace_direct_hash(struct ftrace_ops *ops, struct ftrace_hash *hash)
| ^
include/linux/ftrace.h:580:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
580 | int unregister_ftrace_direct_hash(struct ftrace_ops *ops, struct ftrace_hash *hash)
| ^
| static
include/linux/ftrace.h:585:5: warning: no previous prototype for function 'modify_ftrace_direct_hash' [-Wmissing-prototypes]
585 | int modify_ftrace_direct_hash(struct ftrace_ops *ops, struct ftrace_hash *hash, bool do_direct_lock)
| ^
include/linux/ftrace.h:585:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
585 | int modify_ftrace_direct_hash(struct ftrace_ops *ops, struct ftrace_hash *hash, bool do_direct_lock)
| ^
| static
In file included from kernel/trace/rv/rv.c:151:
In file included from kernel/trace/rv/rv.h:9:
>> kernel/trace/rv/../trace.h:907:24: error: incomplete definition of type 'struct ftrace_hash'
907 | return !hash || !(hash->count || (hash->flags & FTRACE_HASH_FL_MOD));
| ~~~~^
include/linux/ftrace.h:84:8: note: forward declaration of 'struct ftrace_hash'
84 | struct ftrace_hash;
| ^
In file included from kernel/trace/rv/rv.c:151:
In file included from kernel/trace/rv/rv.h:9:
kernel/trace/rv/../trace.h:907:40: error: incomplete definition of type 'struct ftrace_hash'
907 | return !hash || !(hash->count || (hash->flags & FTRACE_HASH_FL_MOD));
| ~~~~^
include/linux/ftrace.h:84:8: note: forward declaration of 'struct ftrace_hash'
84 | struct ftrace_hash;
| ^
3 warnings and 2 errors generated.
vim +907 kernel/trace/rv/../trace.h
4046bf023b0647 Namhyung Kim 2017-01-20 904
eb583cd484f9a7 Arnd Bergmann 2017-01-23 905 static __always_inline bool ftrace_hash_empty(struct ftrace_hash *hash)
4046bf023b0647 Namhyung Kim 2017-01-20 906 {
8c08f0d5c6fb10 Steven Rostedt (VMware 2017-06-26 @907) return !hash || !(hash->count || (hash->flags & FTRACE_HASH_FL_MOD));
4046bf023b0647 Namhyung Kim 2017-01-20 908 }
4046bf023b0647 Namhyung Kim 2017-01-20 909
:::::: The code at line 907 was first introduced by commit
:::::: 8c08f0d5c6fb10ff93ffb1cbf416f4f1c3a52a80 ftrace: Have cached module filters be an active filter
:::::: TO: Steven Rostedt (VMware) <rostedt@goodmis.org>
:::::: CC: Steven Rostedt (VMware) <rostedt@goodmis.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-07-18 5:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-18 5:18 [jolsa-perf:bpf/tracing_multi 5/22] kernel/trace/rv/../trace.h:907:24: error: incomplete definition of type 'struct ftrace_hash' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).