Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752751AbdL0XJZ (ORCPT ); Wed, 27 Dec 2017 18:09:25 -0500 Received: from terminus.zytor.com ([65.50.211.136]:44089 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752024AbdL0XJX (ORCPT ); Wed, 27 Dec 2017 18:09:23 -0500 Date: Wed, 27 Dec 2017 15:05:07 -0800 From: tip-bot for Mathieu Malaterre Message-ID: Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, malat@debian.org, paulmck@linux.vnet.ibm.com, peterz@infradead.org, tglx@linutronix.de, mingo@kernel.org, bigeasy@linutronix.de, arnd@arndb.de Reply-To: linux-kernel@vger.kernel.org, malat@debian.org, hpa@zytor.com, tglx@linutronix.de, paulmck@linux.vnet.ibm.com, peterz@infradead.org, mingo@kernel.org, bigeasy@linutronix.de, arnd@arndb.de In-Reply-To: <20171226140855.16583-1-malat@debian.org> References: <20171226140855.16583-1-malat@debian.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:smp/urgent] cpu/hotplug: Move inline keyword at the beginning of declaration Git-Commit-ID: 76dc6c097d581ad8eeedf8e1a000423a3d742445 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 Content-Length: 1904 Lines: 55 Commit-ID: 76dc6c097d581ad8eeedf8e1a000423a3d742445 Gitweb: https://git.kernel.org/tip/76dc6c097d581ad8eeedf8e1a000423a3d742445 Author: Mathieu Malaterre AuthorDate: Tue, 26 Dec 2017 15:08:53 +0100 Committer: Thomas Gleixner CommitDate: Wed, 27 Dec 2017 19:41:04 +0100 cpu/hotplug: Move inline keyword at the beginning of declaration Fix non-fatal warnings such as: kernel/cpu.c:95:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] static void inline cpuhp_lock_release(bool bringup) { } ^~~~~~ Signed-off-by: Mathieu Malaterre Signed-off-by: Thomas Gleixner Cc: Arnd Bergmann Cc: Sebastian Andrzej Siewior Cc: Peter Zijlstra Cc: "Paul E. McKenney" Link: https://lkml.kernel.org/r/20171226140855.16583-1-malat@debian.org --- kernel/cpu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index 41376c3..3d002a6 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -80,19 +80,19 @@ static struct lockdep_map cpuhp_state_down_map = STATIC_LOCKDEP_MAP_INIT("cpuhp_state-down", &cpuhp_state_down_map); -static void inline cpuhp_lock_acquire(bool bringup) +static inline void cpuhp_lock_acquire(bool bringup) { lock_map_acquire(bringup ? &cpuhp_state_up_map : &cpuhp_state_down_map); } -static void inline cpuhp_lock_release(bool bringup) +static inline void cpuhp_lock_release(bool bringup) { lock_map_release(bringup ? &cpuhp_state_up_map : &cpuhp_state_down_map); } #else -static void inline cpuhp_lock_acquire(bool bringup) { } -static void inline cpuhp_lock_release(bool bringup) { } +static inline void cpuhp_lock_acquire(bool bringup) { } +static inline void cpuhp_lock_release(bool bringup) { } #endif