Skip to content

Commit

Permalink
Fix tracing sample code warning.
Browse files Browse the repository at this point in the history
Commit 6575257 ("tracing/samples: Fix creation and deletion of
simple_thread_fn creation") introduced a new warning due to using a
boolean as a counter.

Just make it "int".

Fixes: 6575257 ("tracing/samples: Fix creation and deletion of simple_thread_fn creation")
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
torvalds committed Oct 28, 2017
1 parent fe23429 commit a0cb2b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/trace_events/trace-events-sample.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static int simple_thread_fn(void *arg)
}

static DEFINE_MUTEX(thread_mutex);
static bool simple_thread_cnt;
static int simple_thread_cnt;

int foo_bar_reg(void)
{
Expand Down

0 comments on commit a0cb2b5

Please sign in to comment.