提交 83e83726 编写于 作者: M Mathieu Malaterre 提交者: Thomas Gleixner

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: NMathieu Malaterre <malat@debian.org>
Signed-off-by: NThomas 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
上级 c2d64c7e
...@@ -59,7 +59,7 @@ struct cyc2ns { ...@@ -59,7 +59,7 @@ struct cyc2ns {
static DEFINE_PER_CPU_ALIGNED(struct cyc2ns, cyc2ns); static DEFINE_PER_CPU_ALIGNED(struct cyc2ns, cyc2ns);
void __always_inline cyc2ns_read_begin(struct cyc2ns_data *data) __always_inline void cyc2ns_read_begin(struct cyc2ns_data *data)
{ {
int seq, idx; int seq, idx;
...@@ -76,7 +76,7 @@ void __always_inline cyc2ns_read_begin(struct cyc2ns_data *data) ...@@ -76,7 +76,7 @@ void __always_inline cyc2ns_read_begin(struct cyc2ns_data *data)
} while (unlikely(seq != this_cpu_read(cyc2ns.seq.sequence))); } while (unlikely(seq != this_cpu_read(cyc2ns.seq.sequence)));
} }
void __always_inline cyc2ns_read_end(void) __always_inline void cyc2ns_read_end(void)
{ {
preempt_enable_notrace(); preempt_enable_notrace();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册