]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace/samples: Add missing prototype for my_direct_func
authorJiri Olsa <jolsa@redhat.com>
Mon, 1 Nov 2021 15:39:07 +0000 (16:39 +0100)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 2 Nov 2021 00:56:51 +0000 (20:56 -0400)
commitad670fd31b9f9d8af5d04f0fa3b9dca58c64eddc
tree4fd82f9c6051b0a2f740941b0419fd43198d7cb6
parente20c77ce932b399982b9b1631420c2a9ecfc7bab
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: 7b3e3a4a7378 ("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>
samples/ftrace/ftrace-direct-multi.c