diff options
| author | Vasily Gorbik <[email protected]> | 2019-06-05 11:11:58 +0000 |
|---|---|---|
| committer | Steven Rostedt (VMware) <[email protected]> | 2019-06-14 20:34:57 +0000 |
| commit | cbdaeaf050b730ea02e9ab4ff844ce54d85dbe1d (patch) | |
| tree | cd5d310741d4eaef730bf3029ba6c7f27d0c95ff /lib/timerqueue.c | |
| parent | tracing: Fix out-of-range read in trace_stack_print() (diff) | |
| download | kernel-cbdaeaf050b730ea02e9ab4ff844ce54d85dbe1d.tar.gz kernel-cbdaeaf050b730ea02e9ab4ff844ce54d85dbe1d.zip | |
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: 2f4df0017baed ("tracing: Add -mcount-nop option support")
Signed-off-by: Vasily Gorbik <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions
