]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: avoid build warning with HAVE_NOP_MCOUNT
authorVasily Gorbik <gor@linux.ibm.com>
Wed, 5 Jun 2019 11:11:58 +0000 (13:11 +0200)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 14 Jun 2019 20:34:57 +0000 (16:34 -0400)
commitcc7ac522dcc40204ab1d1e60fd2626b37dcc3d3c
treecd5d310741d4eaef730bf3029ba6c7f27d0c95ff
parent7c735d0b4d710419c29ea5a7e5c7227f183bc81c
tracing: avoid build warning with HAVE_NOP_MCOUNT

Selecting HAVE_NOP_MCOUNT enables -mnop-mcount (if gcc supports it)
and sets CC_USING_NOP_MCOUNT. Reuse __is_defined (which is suitable for
testing CC_USING_* defines) to avoid conditional compilation and fix
the following gcc 9 warning on s390:

kernel/trace/ftrace.c:2514:1: warning: ‘ftrace_code_disable’ defined
but not used [-Wunused-function]

Link: http://lkml.kernel.org/r/patch.git-1a82d13f33ac.your-ad-here.call-01559732716-ext-6629@work.hours
Fixes: 332560dcbc7f8 ("tracing: Add -mcount-nop option support")
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c