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

From: Linus Torvalds
Date: Thu Jul 28 2016 - 21:25:38 EST


On Wed, Jul 27, 2016 at 8:52 PM, Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
>
> I just looked at your patch. Would this work if you moved that
> KBUILD_CFLAGS to the tracing directory? Something like the below (never
> compiled or tested).

I tried something like that, but the CFLAGS games the tracing code
does made my thing result in

kernel/trace/Makefile:20: *** Recursive variable 'KBUILD_CFLAGS'
references itself (eventually). Stop.

but yes, if you have the magic fingers to make it work, limiting the
-Wno-frame-address to just the tracing code sounds like the
RightThing(tm).

Linus