]> git.baikalelectronics.ru Git - kernel.git/commit
Disable the __builtin_return_address() warning globally after all
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 12 Oct 2016 17:23:41 +0000 (10:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 12 Oct 2016 17:23:41 +0000 (10:23 -0700)
commit19a58daa7fe952f0cff662a116e7c55b95c8606a
tree079d10b266768a7a164cc5bac48f05c00fe0fcb5
parent8114e2640c61184e27c33d07f21c5b8f3065c357
Disable the __builtin_return_address() warning globally after all

This affectively reverts commit a1e76d27ea6e ("Makefile: Mute warning
for __builtin_return_address(>0) for tracing only") because it turns out
that it really isn't tracing only - it's all over the tree.

We already also had the warning disabled separately for mm/usercopy.c
(which this commit also removes), and it turns out that we will also
want to disable it for get_lock_parent_ip(), that is used for at least
TRACE_IRQFLAGS.  Which (when enabled) ends up being all over the tree.

Steven Rostedt had a patch that tried to limit it to just the config
options that actually triggered this, but quite frankly, the extra
complexity and abstraction just isn't worth it.  We have never actually
had a case where the warning is actually useful, so let's just disable
it globally and not worry about it.

Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Peter Anvin <hpa@zytor.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Makefile
kernel/trace/Makefile
mm/Makefile