lkml.org 
[lkml]   [2017]   [Dec]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 2/3] perf/core: Move inline keyword at the beginning of declaration
Hi Arnaldo,

On Tue, Dec 26, 2017 at 4:05 PM, Arnaldo Carvalho de Melo
<acme@kernel.org> wrote:
> Em Tue, Dec 26, 2017 at 03:09:13PM +0100, Mathieu Malaterre escreveu:
>> Fix non-fatal warning:
>>
>> kernel/events/core.c:6106:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration]
>> static void __always_inline
>> ^~~~~~
>
> Can you please provide more context? When did this become a problem?
> What gcc version?
>

I tend to use W=1 before submitting a patch since not everything is
being caught by ./scripts/checkpatch.pl. So this trivial patch was
simply a way for me to remove some warning pollution I was seeing on
my branch (not clear why this specific warning is considered an error
in other section of the linux tree). This is a custom pmac32 branch,
gcc version is:

$ powerpc-linux-gnu-gcc --version
powerpc-linux-gnu-gcc (Debian 6.3.0-18) 6.3.0 20170516

Feel free to drop it if this is too much noise.

Thanks

> - Arnaldo
>
>> Signed-off-by: Mathieu Malaterre <malat@debian.org>
>> ---
>> 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 4df5b695bf0d..aa874d2b58b3 100644
>> --- a/kernel/events/core.c
>> +++ b/kernel/events/core.c
>> @@ -6103,7 +6103,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

\
 
 \ /
  Last update: 2017-12-26 19:24    [W:0.060 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site