Re: [PATCH 4.13 44/85] tracing/samples: Fix creation and deletion of simple_thread_fn creation

From: Steven Rostedt
Date: Mon Oct 30 2017 - 15:57:19 EST


On Tue, 24 Oct 2017 15:07:18 +0200
Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> wrote:

> 4.13-stable review patch. If anyone has any objections, please let me know.

Just that it needs a fix.

>
> --- a/samples/trace_events/trace-events-sample.c
> +++ b/samples/trace_events/trace-events-sample.c
> @@ -78,29 +78,37 @@ static int simple_thread_fn(void *arg)
> }
>
> static DEFINE_MUTEX(thread_mutex);
> +static bool simple_thread_cnt;

This needs to be int not bool, and Linus fixed it in his tree.

commit a0cb2b5c390 ("Fix tracing sample code warning.")

-- Steve