* [jolsa-perf:bpf/tracing_multi_5 3/10] include/linux/ftrace.h:563:5: warning: no previous prototype for function 'unregister_ftrace_direct_hash'
@ 2025-06-20 9:52 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-06-20 9:52 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_5
head: b288c6b15d20122d59ddf3bce2fb86afe6ed56c3
commit: 85ce35fa5a72947188457f2189f1e9f83482470b [3/10] ftrace: Add unregister_ftrace_direct_hash function
config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20250620/202506201756.lZyUFtip-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250620/202506201756.lZyUFtip-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/202506201756.lZyUFtip-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from mm/filemap.c:25:
In file included from include/linux/syscalls.h:94:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:43:
include/linux/ftrace.h:558:5: warning: no previous prototype for function 'register_ftrace_direct_hash' [-Wmissing-prototypes]
558 | int register_ftrace_direct_hash(struct ftrace_ops *ops, struct ftrace_hash *hash)
| ^
include/linux/ftrace.h:558:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
558 | int register_ftrace_direct_hash(struct ftrace_ops *ops, struct ftrace_hash *hash)
| ^
| static
>> include/linux/ftrace.h:563:5: warning: no previous prototype for function 'unregister_ftrace_direct_hash' [-Wmissing-prototypes]
563 | int unregister_ftrace_direct_hash(struct ftrace_ops *ops, struct ftrace_hash *hash)
| ^
include/linux/ftrace.h:563:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
563 | int unregister_ftrace_direct_hash(struct ftrace_ops *ops, struct ftrace_hash *hash)
| ^
| static
2 warnings generated.
--
In file included from mm/shmem.c:77:
In file included from include/linux/syscalls.h:94:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:43:
include/linux/ftrace.h:558:5: warning: no previous prototype for function 'register_ftrace_direct_hash' [-Wmissing-prototypes]
558 | int register_ftrace_direct_hash(struct ftrace_ops *ops, struct ftrace_hash *hash)
| ^
include/linux/ftrace.h:558:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
558 | int register_ftrace_direct_hash(struct ftrace_ops *ops, struct ftrace_hash *hash)
| ^
| static
>> include/linux/ftrace.h:563:5: warning: no previous prototype for function 'unregister_ftrace_direct_hash' [-Wmissing-prototypes]
563 | int unregister_ftrace_direct_hash(struct ftrace_ops *ops, struct ftrace_hash *hash)
| ^
include/linux/ftrace.h:563:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
563 | int unregister_ftrace_direct_hash(struct ftrace_ops *ops, struct ftrace_hash *hash)
| ^
| static
mm/shmem.c:1686:20: warning: unused function 'shmem_show_mpol' [-Wunused-function]
1686 | static inline void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol)
| ^~~~~~~~~~~~~~~
3 warnings generated.
vim +/unregister_ftrace_direct_hash +563 include/linux/ftrace.h
557
> 558 int register_ftrace_direct_hash(struct ftrace_ops *ops, struct ftrace_hash *hash)
559 {
560 return -ENODEV;
561 }
562
> 563 int unregister_ftrace_direct_hash(struct ftrace_ops *ops, struct ftrace_hash *hash)
564 {
565 return -ENODEV;
566 }
567
--
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-06-20 9:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-20 9:52 [jolsa-perf:bpf/tracing_multi_5 3/10] include/linux/ftrace.h:563:5: warning: no previous prototype for function 'unregister_ftrace_direct_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