From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756116AbdARLns (ORCPT ); Wed, 18 Jan 2017 06:43:48 -0500 Received: from terminus.zytor.com ([198.137.202.10]:44640 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752513AbdARLnq (ORCPT ); Wed, 18 Jan 2017 06:43:46 -0500 Date: Wed, 18 Jan 2017 02:57:58 -0800 From: tip-bot for Tobias Klauser Message-ID: Cc: bigeasy@linutronix.de, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de, peterz@infradead.org, tklauser@distanz.ch, linux-kernel@vger.kernel.org Reply-To: peterz@infradead.org, linux-kernel@vger.kernel.org, tklauser@distanz.ch, hpa@zytor.com, bigeasy@linutronix.de, mingo@kernel.org, tglx@linutronix.de In-Reply-To: <20170117143501.20893-1-tklauser@distanz.ch> References: <20170117143501.20893-1-tklauser@distanz.ch> To: linux-tip-commits@vger.kernel.org Subject: [tip:smp/urgent] cpu/hotplug: Remove unused but set variable in _cpu_down() Git-Commit-ID: 0fec9557fd0c5349e3bd1a2141612a60bc20bb71 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 0fec9557fd0c5349e3bd1a2141612a60bc20bb71 Gitweb: http://git.kernel.org/tip/0fec9557fd0c5349e3bd1a2141612a60bc20bb71 Author: Tobias Klauser AuthorDate: Tue, 17 Jan 2017 15:35:01 +0100 Committer: Thomas Gleixner CommitDate: Wed, 18 Jan 2017 11:55:09 +0100 cpu/hotplug: Remove unused but set variable in _cpu_down() After the recent removal of the hotplug notifiers the variable 'hasdied' in _cpu_down() is set but no longer read, leading to the following GCC warning when building with 'make W=1': kernel/cpu.c:767:7: warning: variable ‘hasdied’ set but not used [-Wunused-but-set-variable] Fix it by removing the variable. Fixes: 530e9b76ae8f ("cpu/hotplug: Remove obsolete cpu hotplug register/unregister functions") Signed-off-by: Tobias Klauser Cc: Peter Zijlstra Cc: Sebastian Andrzej Siewior Cc: rt@linutronix.de Link: http://lkml.kernel.org/r/20170117143501.20893-1-tklauser@distanz.ch Signed-off-by: Thomas Gleixner --- kernel/cpu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index c475063..0a5f630 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -764,7 +764,6 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen, { struct cpuhp_cpu_state *st = per_cpu_ptr(&cpuhp_state, cpu); int prev_state, ret = 0; - bool hasdied = false; if (num_online_cpus() == 1) return -EBUSY; @@ -809,7 +808,6 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen, cpuhp_kick_ap_work(cpu); } - hasdied = prev_state != st->state && st->state == CPUHP_OFFLINE; out: cpu_hotplug_done(); return ret;