[PATCH v2] perf/core: Move inline keyword at the beginning of declaration

From: Mathieu Malaterre
Date: Tue Jun 26 2018 - 16:23:13 EST


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@xxxxxxxxxx>
---
v2: Explicit reference to W=1

kernel/events/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

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,
data->phys_addr = perf_virt_to_phys(data->addr);
}

-static void __always_inline
+static __always_inline void
__perf_event_output(struct perf_event *event,
struct perf_sample_data *data,
struct pt_regs *regs,
--
2.11.0