Re: linux-next: build failure after merge of the ftrace tree

From: Steven Rostedt
Date: Thu Oct 10 2024 - 11:59:21 EST


On Thu, 10 Oct 2024 22:08:04 +0800
Donglin Peng <dolinux.peng@xxxxxxxxx> wrote:

> > Hmm, strange. This went through my tests that also does an allmodconfig build.
> >
> > I'll go investigate. Thanks for the report.
>
> I suspect that the configuration CONFIG_FUNCTION_GRAPH_RETADDR may be
> disabled during testing. If this configuration is indeed disabled,
> the function
> __trace_graph_retaddr_entry will not invoke call_filter_check_discard.

I see what happened. The removal of the call_filter_check_discard()
happened in my "trace" topic branch. This was added to my "ftrace" topic
branch. The two topic branches build fine separately, but merging them
together breaks the build.

Luckily, that function is unused and I can apply your fix for it in the
"ftrace" topic branch. It's not really a fix, because your commit still
works in that topic branch, but that function is not needed and can safely
be removed.

I'll apply your fix, test it, and hopefully if nothing goes wrong, will
push it up to linux-next by tonight.

-- Steve