On Sat, Oct 8, 2016 at 5:47 AM, Thomas Gleixner <t...@linutronix.de> wrote: > > A single fix which prevents newer GCCs from spamming the build output with > overly eager warnings about __builtin_return_address() uses which are > correct.
Ugh. This feels over-engineered to me. We already disable that warning unconditionally for the trace subdirectory, and for mm/usercopy.c. I feel that the simpler solution is to just disable the warning globally, and not worry about "when this config option is enabled we need to disable it". Basically, we disable the warning every time we ever use __builtin_return_address(), so maybe we should just disable it once and for all. It's not like the __builtin_return_address() warning is so incredibly useful anyway. Hmm? Linus