diff options
author | Mathieu Malaterre <malat@debian.org> | 2018-06-26 16:23:00 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-06-27 03:55:58 -0400 |
commit | 9331510135640429711afbd0c810686100824a79 (patch) | |
tree | c8f8b384a80b7740d4764c92e25fdccbe1095371 | |
parent | 32fdbd90cc03f01d452138bab4d8a120873d6acf (diff) |
perf/core: Move inline keyword at the beginning of declaration
Fix non-fatal warning triggered during compilation with W=1:
kernel/events/core.c:6106:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration]
static void __always_inline
^~~~~~
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20180626202301.20270-1-malat@debian.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | kernel/events/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c index 80cca2b30c4f..8f0434a9951a 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c | |||
@@ -6482,7 +6482,7 @@ void perf_prepare_sample(struct perf_event_header *header, | |||
6482 | data->phys_addr = perf_virt_to_phys(data->addr); | 6482 | data->phys_addr = perf_virt_to_phys(data->addr); |
6483 | } | 6483 | } |
6484 | 6484 | ||
6485 | static void __always_inline | 6485 | static __always_inline void |
6486 | __perf_event_output(struct perf_event *event, | 6486 | __perf_event_output(struct perf_event *event, |
6487 | struct perf_sample_data *data, | 6487 | struct perf_sample_data *data, |
6488 | struct pt_regs *regs, | 6488 | struct pt_regs *regs, |