Re: warning: calling â__builtin_return_addressâ with a nonzero argument is unsafe

From: Linus Torvalds
Date: Mon Aug 01 2016 - 14:26:06 EST


On Mon, Aug 1, 2016 at 2:10 PM, Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
>>
>> It compiles for me, but I don't have a compiler that has that warning
>> to test with. See if this works. BTW, it looks like that last comma
>> before the ending parenthesis is not needed.
>
> Linus, did you get a chance to test this? I could send a formal patch
> if needed. I only have a 4.9 compiler, so I'm not seeing the warnings
> others have reported.

It seems to work for me. Warnings are still suppressed, and the
-Wno-frame-address flag seems to be nicely limited to just the build
of the kernel/trace/ subdirectory.

So feel free to add that patch to the tracing tree, with my tested-by.

Linus