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

From: Ingo Molnar
Date: Thu Dec 28 2017 - 07:15:18 EST



* Mathieu Malaterre <malat@xxxxxxxxxx> wrote:

> Fix non-fatal warnings such as:
>
> kernel/events/ring_buffer.c:116:1: warning: âinlineâ is not at beginning of declaration [-Wold-style-declaration]
> static int __always_inline
> ^~~~~~
>
> Signed-off-by: Mathieu Malaterre <malat@xxxxxxxxxx>
> ---
> kernel/events/ring_buffer.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)

Hm, never saw this warning before - is this a newly default GCC warning, or some
distro CFLAGS build that enables it?

Thanks,

Ingo