linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [zanussi-trace:ftrace/cleanup-hist-func-v1 1/2] kernel/trace/trace_events_trigger.c:685:6: error: no previous prototype for function 'event_trigger_remove'
@ 2021-11-06 10:52 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-06 10:52 UTC (permalink / raw)
  To: Tom Zanussi; +Cc: llvm, kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2483 bytes --]

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: x86_64-buildonly-randconfig-r006-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=x86_64 

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

All errors (new ones prefixed by >>):

>> kernel/trace/trace_events_trigger.c:685:6: error: no previous prototype for function 'event_trigger_remove' [-Werror,-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 error 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@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 45364 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-06 10:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-06 10:52 [zanussi-trace:ftrace/cleanup-hist-func-v1 1/2] kernel/trace/trace_events_trigger.c:685:6: error: no previous prototype for function 'event_trigger_remove' 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).