diff options
author | Mathieu Malaterre <malat@debian.org> | 2018-05-16 15:59:43 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-05-16 16:21:32 -0400 |
commit | db6f9e55c8d80a4a1a329b9b68a1d370bffb6aad (patch) | |
tree | 12cc0cf37e7a32b992207f67eb2be55f4e24f4ed | |
parent | ed772ec873cb0d378c0329d266ae656ec1f2b511 (diff) |
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]
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: John Stultz <john.stultz@linaro.org>
Link: https://lkml.kernel.org/r/20180516195943.31924-1-malat@debian.org
-rw-r--r-- | kernel/time/clocksource.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index 56fd2239674f..f89a78e2792b 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c | |||
@@ -442,8 +442,8 @@ static inline int __clocksource_watchdog_work(void) { return 0; } | |||
442 | static bool clocksource_is_watchdog(struct clocksource *cs) { return false; } | 442 | static bool clocksource_is_watchdog(struct clocksource *cs) { return false; } |
443 | void clocksource_mark_unstable(struct clocksource *cs) { } | 443 | void clocksource_mark_unstable(struct clocksource *cs) { } |
444 | 444 | ||
445 | static void inline clocksource_watchdog_lock(unsigned long *flags) { } | 445 | static inline void clocksource_watchdog_lock(unsigned long *flags) { } |
446 | static void inline clocksource_watchdog_unlock(unsigned long *flags) { } | 446 | static inline void clocksource_watchdog_unlock(unsigned long *flags) { } |
447 | 447 | ||
448 | #endif /* CONFIG_CLOCKSOURCE_WATCHDOG */ | 448 | #endif /* CONFIG_CLOCKSOURCE_WATCHDOG */ |
449 | 449 | ||