Skip to content

Commit b83c288

Browse files
torvaldsgregkh
authored andcommitted
Fix tracing sample code warning.
commit a0cb2b5c390151837b08e5f7bca4a6ecddbcd39c upstream. Commit 6575257c60e1 ("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: 6575257c60e1 ("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a48fce6 commit b83c288

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

samples/trace_events/trace-events-sample.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static int simple_thread_fn(void *arg)
7878
}
7979

8080
static DEFINE_MUTEX(thread_mutex);
81-
static bool simple_thread_cnt;
81+
static int simple_thread_cnt;
8282

8383
void foo_bar_reg(void)
8484
{

0 commit comments

Comments
 (0)