summaryrefslogtreecommitdiffstats
path: root/kernel/stop_machine.c
diff options
context:
space:
mode:
authorRakib Mullick <rakib.mullick@gmail.com>2010-10-26 14:22:44 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-26 16:52:15 -0700
commitca51c5a76345b28c6f1b742f9f5f0a6fc9afd9ca (patch)
tree2165800008473681383c565031b5f3fedb729d09 /kernel/stop_machine.c
parent518de9b39e854542de59bfb8b9f61c8f7ecf808b (diff)
downloadop-kernel-dev-ca51c5a76345b28c6f1b742f9f5f0a6fc9afd9ca.zip
op-kernel-dev-ca51c5a76345b28c6f1b742f9f5f0a6fc9afd9ca.tar.gz
kernel/stop_machine.c: fix unused variable warning
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>
Diffstat (limited to 'kernel/stop_machine.c')
-rw-r--r--kernel/stop_machine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/stop_machine.c b/kernel/stop_machine.c
index 090c288..3cb4a9a 100644
--- a/kernel/stop_machine.c
+++ b/kernel/stop_machine.c
@@ -262,7 +262,7 @@ repeat:
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);
OpenPOWER on IntegriCloud