linux-next/samples/ftrace
Jiri Olsa 67d4f6e3bf ftrace/samples: Add missing prototype for my_direct_func
There's compilation fail reported kernel test robot for W=1 build:

  >> samples/ftrace/ftrace-direct-multi.c:8:6: warning: no previous
  prototype for function 'my_direct_func' [-Wmissing-prototypes]
     void my_direct_func(unsigned long ip)

The inlined assembly is used outside function, so we can't make
my_direct_func static and pass it as asm input argument.

However my_tramp is already extern so I think there's no problem
keeping my_direct_func extern as well and just add its prototype.

Link: https://lkml.kernel.org/r/20211101153907.377668-1-jolsa@kernel.org

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 5fae941b9a ("ftrace/samples: Add multi direct interface test module")
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
2021-11-01 20:56:51 -04:00
..
ftrace-direct-modify.c samples/ftrace: Mark my_tramp[12]? global 2020-11-30 21:42:48 -05:00
ftrace-direct-multi.c ftrace/samples: Add missing prototype for my_direct_func 2021-11-01 20:56:51 -04:00
ftrace-direct-too.c samples/ftrace: Mark my_tramp[12]? global 2020-11-30 21:42:48 -05:00
ftrace-direct.c samples/ftrace: Mark my_tramp[12]? global 2020-11-30 21:42:48 -05:00
Makefile ftrace/samples: Add multi direct interface test module 2021-10-21 14:19:00 -04:00
sample-trace-array.c sample-trace-array: Remove trace_array 'sample-instance' 2020-06-16 21:21:02 -04:00
sample-trace-array.h tracing: Sample module to demonstrate kernel access to Ftrace instances. 2019-11-22 19:41:08 -05:00