Re: [PATCH v2] X86: Makefile: Replace -pg with CC_FLAGS_FTRACE

From: Steven Rostedt
Date: Fri Apr 16 2021 - 12:50:01 EST


On Fri, 16 Apr 2021 10:12:58 -0500
Josh Poimboeuf <jpoimboe@xxxxxxxxxx> wrote:

> Adding Steven Rostedt (ftrace maintainer).

Thanks.

>
> On Fri, Apr 16, 2021 at 01:39:28PM +0800, zhaoxiao wrote:
> > In preparation for x86 supporting ftrace built on other compiler
> > options, let's have the x86 Makefiles remove the $(CC_FLAGS_FTRACE)
> > flags, whatever these may be, rather than assuming '-pg'.
> >
> > There should be no functional change as a result of this patch.
> >
> > Signed-off-by: zhaoxiao <zhaoxiao@xxxxxxxxxxxxx>
> > ---
> > v2: add the same change for the other Makefile in arch/x86 directory.
> > arch/x86/entry/vdso/Makefile | 8 ++++----
> > arch/x86/kernel/Makefile | 16 ++++++++--------
> > arch/x86/kernel/cpu/Makefile | 4 ++--
> > arch/x86/lib/Makefile | 2 +-
> > arch/x86/mm/Makefile | 4 ++--
> > arch/x86/xen/Makefile | 6 +++---
> > 6 files changed, 20 insertions(+), 20 deletions(-)
> >

I'm good with switching "-pg" over to "$(CC_FLAGS_FTRACE)" globally.

Acked-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>

-- Steve