Skip to content

Commit

Permalink
kernel/stop_machine.c: fix unused variable warning
Browse files Browse the repository at this point in the history
kernel/stop_machine.c: In function `cpu_stopper_thread':
kernel/stop_machine.c:265: warning: unused variable `ksym_buf'

ksym_buf[] is unused if WARN_ON() is a no-op.

Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Rakib Mullick authored and Linus Torvalds committed Oct 26, 2010
1 parent 518de9b commit ca51c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/stop_machine.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ static int cpu_stopper_thread(void *data)
cpu_stop_fn_t fn = work->fn;
void *arg = work->arg;
struct cpu_stop_done *done = work->done;
char ksym_buf[KSYM_NAME_LEN];
char ksym_buf[KSYM_NAME_LEN] __maybe_unused;

__set_current_state(TASK_RUNNING);

Expand Down

0 comments on commit ca51c5a

Please sign in to comment.