diff options
author | Mathieu Malaterre <malat@debian.org> | 2019-05-24 06:32:51 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-06-14 11:02:09 -0400 |
commit | 83e837269e87436fda1cbf82214a5494fb6b35b1 (patch) | |
tree | 4eda137e1339802fa119835d486e29b9f116fd16 | |
parent | c2d64c7ec4de6385150aa79570c438b4ba49c243 (diff) |
x86/tsc: 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:
arch/x86/kernel/tsc.c:62:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration]
arch/x86/kernel/tsc.c:79: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: trivial@kernel.org
Cc: kernel-janitors@vger.kernel.org
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Link: https://lkml.kernel.org/r/20190524103252.28575-1-malat@debian.org
-rw-r--r-- | arch/x86/kernel/tsc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c index 0b29e58f288e..75a41bddbc9d 100644 --- a/arch/x86/kernel/tsc.c +++ b/arch/x86/kernel/tsc.c | |||
@@ -59,7 +59,7 @@ struct cyc2ns { | |||
59 | 59 | ||
60 | static DEFINE_PER_CPU_ALIGNED(struct cyc2ns, cyc2ns); | 60 | static DEFINE_PER_CPU_ALIGNED(struct cyc2ns, cyc2ns); |
61 | 61 | ||
62 | void __always_inline cyc2ns_read_begin(struct cyc2ns_data *data) | 62 | __always_inline void cyc2ns_read_begin(struct cyc2ns_data *data) |
63 | { | 63 | { |
64 | int seq, idx; | 64 | int seq, idx; |
65 | 65 | ||
@@ -76,7 +76,7 @@ void __always_inline cyc2ns_read_begin(struct cyc2ns_data *data) | |||
76 | } while (unlikely(seq != this_cpu_read(cyc2ns.seq.sequence))); | 76 | } while (unlikely(seq != this_cpu_read(cyc2ns.seq.sequence))); |
77 | } | 77 | } |
78 | 78 | ||
79 | void __always_inline cyc2ns_read_end(void) | 79 | __always_inline void cyc2ns_read_end(void) |
80 | { | 80 | { |
81 | preempt_enable_notrace(); | 81 | preempt_enable_notrace(); |
82 | } | 82 | } |