clocksource: Move the inline keyword at the beginning of function declarations
PATCH 1/1 clocksource: Move the inline keyword at the beginning of function declarations
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]
--- kernel/time/clocksource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/time/clocksource.c +2 -2
@@ -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 */
Signature · 1 line
2.11.0
tip-bot for Mathieu Malaterre
merge bot[tip:timers/core] clocksource: Move inline keyword to the beginning of function declarations
clocksource: Move inline keyword to the beginning of function declarations
Commit-ID: db6f9e55c8d80a4a1a329b9b68a1d370bffb6aad Gitweb: https://git.kernel.org/tip/db6f9e55c8d80a4a1a329b9b68a1d370bffb6aad Author: Mathieu Malaterre <[email protected]> AuthorDate: Wed, 16 May 2018 21:59:43 +0200 Committer: Thomas Gleixner <[email protected]> CommitDate: Wed, 16 May 2018 22:21:32 +0200
clocksource: Move inline keyword to the beginning of function declarations
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]
--- kernel/time/clocksource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/time/clocksource.c +2 -2
@@ -442,8 +442,8 @@ static inline int __clocksource_watchdog_work(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 */