From: Mathieu Malaterre Date: Wed, 16 May 2018 19:59:43 +0000 (+0200) Subject: clocksource: Move inline keyword to the beginning of function declarations X-Git-Tag: v4.17.12~166 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a5dd807782bbe6392b3288dd79a4e17e14ecbd2;p=thirdparty%2Fkernel%2Fstable.git clocksource: Move inline keyword to the beginning of function declarations [ Upstream commit db6f9e55c8d80a4a1a329b9b68a1d370bffb6aad ] The inline keyword was not at the beginning of the function declarations. Fix the following warnings triggered when using W=1: kernel/time/clocksource.c:456:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] kernel/time/clocksource.c:457:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] Signed-off-by: Mathieu Malaterre Signed-off-by: Thomas Gleixner Cc: Stephen Boyd Cc: John Stultz Link: https://lkml.kernel.org/r/20180516195943.31924-1-malat@debian.org Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index 84f37420fcf54..e0ff8f94f237a 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c @@ -453,8 +453,8 @@ static inline int __clocksource_watchdog_kthread(void) { return 0; } static bool clocksource_is_watchdog(struct clocksource *cs) { return false; } void clocksource_mark_unstable(struct clocksource *cs) { } -static void inline clocksource_watchdog_lock(unsigned long *flags) { } -static void inline clocksource_watchdog_unlock(unsigned long *flags) { } +static inline void clocksource_watchdog_lock(unsigned long *flags) { } +static inline void clocksource_watchdog_unlock(unsigned long *flags) { } #endif /* CONFIG_CLOCKSOURCE_WATCHDOG */