[thomas-weissschuh:b4/tracing-cli-event-filter 8/8] kernel/trace/trace_boot.c:96:21: error: too few arguments to function 'ftrace_set_clr_event'; expected 4, have 3

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/tracing-cli-event-filter
head:   dfd7ada96ceaa48bce6bd68227796cd99b3c8f1f
commit: dfd7ada96ceaa48bce6bd68227796cd99b3c8f1f [8/8] tracing: Parse filter from boot event string
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20260815/[email protected]/config)
compiler: arc-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260815/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

   kernel/trace/trace_boot.c: In function 'trace_boot_enable_events':
>> kernel/trace/trace_boot.c:96:21: error: too few arguments to function 'ftrace_set_clr_event'; expected 4, have 3
      96 |                 if (ftrace_set_clr_event(tr, buf, 1) < 0)
         |                     ^~~~~~~~~~~~~~~~~~~~
   In file included from kernel/trace/trace_boot.c:18:
   include/linux/trace_events.h:876:5: note: declared here
     876 | int ftrace_set_clr_event(struct trace_array *tr, const char *buf, int set, bool handle_filter);
         |     ^~~~~~~~~~~~~~~~~~~~


vim +/ftrace_set_clr_event +96 kernel/trace/trace_boot.c

9c5b9d3d65e485 Masami Hiramatsu        2020-01-11   81  
9c5b9d3d65e485 Masami Hiramatsu        2020-01-11   82  #ifdef CONFIG_EVENT_TRACING
9c5b9d3d65e485 Masami Hiramatsu        2020-01-11   83  static void __init
9c5b9d3d65e485 Masami Hiramatsu        2020-01-11   84  trace_boot_enable_events(struct trace_array *tr, struct xbc_node *node)
9c5b9d3d65e485 Masami Hiramatsu        2020-01-11   85  {
9c5b9d3d65e485 Masami Hiramatsu        2020-01-11   86  	struct xbc_node *anode;
9c5b9d3d65e485 Masami Hiramatsu        2020-01-11   87  	char buf[MAX_BUF_LEN];
9c5b9d3d65e485 Masami Hiramatsu        2020-01-11   88  	const char *p;
9c5b9d3d65e485 Masami Hiramatsu        2020-01-11   89  
9c5b9d3d65e485 Masami Hiramatsu        2020-01-11   90  	xbc_node_for_each_array_value(node, "events", anode, p) {
fddca7db4a4c17 Steven Rostedt (Google  2023-07-04   91) 		if (strscpy(buf, p, ARRAY_SIZE(buf)) < 0) {
9c5b9d3d65e485 Masami Hiramatsu        2020-01-11   92  			pr_err("String is too long: %s\n", p);
9c5b9d3d65e485 Masami Hiramatsu        2020-01-11   93  			continue;
9c5b9d3d65e485 Masami Hiramatsu        2020-01-11   94  		}
9c5b9d3d65e485 Masami Hiramatsu        2020-01-11   95  
9c5b9d3d65e485 Masami Hiramatsu        2020-01-11  @96  		if (ftrace_set_clr_event(tr, buf, 1) < 0)
9c5b9d3d65e485 Masami Hiramatsu        2020-01-11   97  			pr_err("Failed to enable event: %s\n", p);
9c5b9d3d65e485 Masami Hiramatsu        2020-01-11   98  	}
9c5b9d3d65e485 Masami Hiramatsu        2020-01-11   99  }
81a59555ff1593 Masami Hiramatsu        2020-01-11  100  

:::::: The code at line 96 was first introduced by commit
:::::: 9c5b9d3d65e485826fb935453f01171b1a337aa8 tracing/boot: Add boot-time tracing

:::::: TO: Masami Hiramatsu <[email protected]>
:::::: CC: Steven Rostedt (VMware) <[email protected]>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.