From: Rakib Mullick Date: Tue, 26 Oct 2010 21:22:44 +0000 (-0700) Subject: kernel/stop_machine.c: fix unused variable warning X-Git-Tag: upstream/snapshot3+hdmi~12647^2~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca51c5a76345b28c6f1b742f9f5f0a6fc9afd9ca;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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);