[zanussi-trace:ftrace/cleanup-hist-func-v1 1/2] kernel/trace/trace_events_trigger.c:685:6: warning: no previous prototype for function 'event_trigger_remove'

From: kernel test robot
Date: Sat Nov 06 2021 - 06:56:09 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/zanussi/linux-trace.git ftrace/cleanup-hist-func-v1
head: 61eeb0efea39a7cae67ea43f3fe553559e0eb2b7
commit: bc058fce125e0728485b35332e34319cc6d51832 [1/2] tracing: Add helper functions to simplify event_command callback handling
config: i386-buildonly-randconfig-r001-20211105 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 627868263cd4d57c230b61904483a3dad9e1a1da)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/zanussi/linux-trace.git/commit/?id=bc058fce125e0728485b35332e34319cc6d51832
git remote add zanussi-trace https://git.kernel.org/pub/scm/linux/kernel/git/zanussi/linux-trace.git
git fetch --no-tags zanussi-trace ftrace/cleanup-hist-func-v1
git checkout bc058fce125e0728485b35332e34319cc6d51832
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> kernel/trace/trace_events_trigger.c:685:6: warning: no previous prototype for function 'event_trigger_remove' [-Wmissing-prototypes]
void event_trigger_remove(struct event_command *cmd_ops,
^
kernel/trace/trace_events_trigger.c:685:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void event_trigger_remove(struct event_command *cmd_ops,
^
static
1 warning generated.


vim +/event_trigger_remove +685 kernel/trace/trace_events_trigger.c

684
> 685 void event_trigger_remove(struct event_command *cmd_ops,
686 struct trace_event_file *file,
687 char *glob,
688 char *cmd,
689 char *trigger,
690 struct event_trigger_data **trigger_data)
691 {
692 struct event_trigger_ops *trigger_ops;
693
694 trigger_ops = cmd_ops->get_trigger_ops(cmd, trigger);
695
696 cmd_ops->unreg(glob+1, trigger_ops, *trigger_data, file);
697
698 kfree(*trigger_data);
699
700 *trigger_data = NULL;
701 }
702

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

Attachment: .config.gz
Description: application/gzip