]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tracing: Have stack tracer compile when MCOUNT_INSN_SIZE is not defined
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 3 Jan 2020 03:02:41 +0000 (22:02 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jan 2020 19:05:40 +0000 (20:05 +0100)
commitf12e2598a5a2871dbba539ec4e943246594b4256
treea347f58fcb9b6cc23ae03370f99bbafc2ecd054b
parentd51eac9941a45be04f97c886656dc853db69e160
tracing: Have stack tracer compile when MCOUNT_INSN_SIZE is not defined

commit b8299d362d0837ae39e87e9019ebe6b736e0f035 upstream.

On some archs with some configurations, MCOUNT_INSN_SIZE is not defined, and
this makes the stack tracer fail to compile. Just define it to zero in this
case.

Link: https://lore.kernel.org/r/202001020219.zvE3vsty%lkp@intel.com
Cc: stable@vger.kernel.org
Fixes: 4df297129f622 ("tracing: Remove most or all of stack tracer stack size from stack_max_size")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/trace_stack.c