cpu/hotplug: Move inline keyword at the beginning of declaration
PATCH 1/3 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 <[email protected]>
--- kernel/cpu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
kernel/cpu.c +4 -4
@@ -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
Signature · 1 line
2.11.0
tip-bot for Mathieu Malaterre
merge botcpu/hotplug: Move inline keyword at the beginning of declaration
Commit-ID: 76dc6c097d581ad8eeedf8e1a000423a3d742445 Gitweb: https://git.kernel.org/tip/76dc6c097d581ad8eeedf8e1a000423a3d742445 Author: Mathieu Malaterre <[email protected]> AuthorDate: Tue, 26 Dec 2017 15:08:53 +0100 Committer: Thomas Gleixner <[email protected]> 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 <[email protected]>
Signed-off-by Thomas Gleixner <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Sebastian Andrzej Siewior <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc "Paul E. McKenney" <[email protected]>
--- kernel/cpu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
kernel/cpu.c +4 -4
@@ -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