Commit e7c9d7bf authored by Linus Torvalds's avatar Linus Torvalds Committed by Thadeu Lima de Souza Cascardo

Fix tracing sample code warning.

BugLink: http://bugs.launchpad.net/bugs/1731915

commit a0cb2b5c upstream.

Commit 6575257c ("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: 6575257c ("tracing/samples: Fix creation and deletion of simple_thread_fn creation")
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
Signed-off-by: default avatarThadeu Lima de Souza Cascardo <cascardo@canonical.com>
parent d01b5e7e
...@@ -78,7 +78,7 @@ static int simple_thread_fn(void *arg) ...@@ -78,7 +78,7 @@ static int simple_thread_fn(void *arg)
} }
static DEFINE_MUTEX(thread_mutex); static DEFINE_MUTEX(thread_mutex);
static bool simple_thread_cnt; static int simple_thread_cnt;
void foo_bar_reg(void) void foo_bar_reg(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment