Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp525667imm; Fri, 22 Jun 2018 00:24:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIJRWaS5BXJcQ2PHdAbtI9kCb4/U949gDPFaI7dF3ERmiRtcWBoN/xs7OgfmoJ4pPSHhe0I X-Received: by 2002:a63:6b84:: with SMTP id g126-v6mr372630pgc.139.1529652269689; Fri, 22 Jun 2018 00:24:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529652269; cv=none; d=google.com; s=arc-20160816; b=M5x4MYBulmZmEQGpHiP4sWgx5U222Ek1vmavNowYgWFCd+khDNheOBZ61iALx8N65c CxyLoqwWL19WQm/CBvr3AsZTKsGtDpCSzbI8lBzMTgzxl8r3wjSEYWTqu7EskiIIIs+2 dWnbwKot4x0Qa6PMgdsQbSUWCuisOk0VL3nsN0r9TfGlojVx2vKBQ/ZdyS+5wOCR/JiY xrksylgK5/STpBAoSmPRzyqyGnV7q4XD1v4vGo4ACl3gwpMGUgsqKEWJiuMnAiQXqljW F/yZ7+kU53eS40W6yiFmPODu4YcUTiFAOxbGIegXoPr+QtgGRhTFqFDuE5wbOjT+mELG 9Paw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :arc-authentication-results; bh=aa38NGp3IufKV7rZrWQZlfee2Emc2FcaRoxf78OkLww=; b=uoPRC+ioUUfyvNlUGj4twYwsNSfbCSHpN6mJew+P/9112DpUKRcpvnVJdeZ2T7YDaR wIdsXRJh4ScYOocKQLPFLaEFpK8vtDZBjAqmcxGt5kikoDulLPBh1AEHiYZepJyfkDqL 6m9jIfqopQnxF3kf92IZ7j160X6fvpf787cf5FYlbTNEVxeOxxl3GZgfpwXXAfqe8j9A xsXR1h8myQHQkCzkXf7FavC3geE2QBMrt1KLRuEjJH0KKEKJjVVDweRUtEkjThLsFApK i9daGamskE26So2bi8tY/qApe98PqZcLjTQ+F7DSjIA140PvD6odo8ZQnndmxX26I2gq Zqcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 68-v6si6958838pfo.229.2018.06.22.00.24.15; Fri, 22 Jun 2018 00:24:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751357AbeFVHXT convert rfc822-to-8bit (ORCPT + 99 others); Fri, 22 Jun 2018 03:23:19 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:46298 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751097AbeFVHXD (ORCPT ); Fri, 22 Jun 2018 03:23:03 -0400 Received: by mail-oi0-f67.google.com with SMTP id h79-v6so5269706oig.13 for ; Fri, 22 Jun 2018 00:23:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=tHfjUnOTv0WI6CZuIlGQEakZi0hZQbBQ6LP2lBi2Ag4=; b=tmdY//Lj+LBkusOQDsqQLBA9i2e6WUwOvMDt6Hu5DvPVO7iR4nlz8YQ7k/Yer+bSx7 97ydhNy5ZLVWXZb3ESsf0eGNW+fVRIfMo/Cy5MQD/3zka1Fd5P4YxjDRjt6GZ6GdC+La /c2GUYlMhGTlYL5EhSBTozVrEyVAgTluO6EZ3zf6ovKpnZZjn4V+Xl+XkQU3y5QCLBIa tSm0kXHH8WeLskU8UXGcaVMq3sALEk5o7GrJN4wi3nlDDk1/HqRI9td0BwN8M84cQsjc BW1MFdRjQYrgK2rI0NyGzRGS49p79M/9/Rp0nTaYkmbmRHpPLhV7SHoj7l0xKIvhQ3bh oa5A== X-Gm-Message-State: APt69E0p2yuYkYWD2MJ9MjWy5IsVZclJStix+Vy2vUPIGXLqWVQDUfps ODqGcKtHZhK3VA8t81a8c71WtiN7R6RxqUcT3xg= X-Received: by 2002:aca:ad91:: with SMTP id w139-v6mr242081oie.107.1529652182628; Fri, 22 Jun 2018 00:23:02 -0700 (PDT) MIME-Version: 1.0 References: <20180308202856.9378-1-malat@debian.org> In-Reply-To: <20180308202856.9378-1-malat@debian.org> From: Mathieu Malaterre Date: Fri, 22 Jun 2018 09:22:51 +0200 Message-ID: Subject: Re: [PATCH] perf/core: Move the inline keyword at the beginning of function declaration To: Peter Zijlstra Cc: trival@kernel.org, Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ping ? On Thu, Mar 8, 2018 at 9:29 PM Mathieu Malaterre wrote: > > The inline keyword was not at the beginning of the function declaration. > Fix the following warning (reported at W=1) > > CC kernel/events/ring_buffer.o > kernel/events/ring_buffer.c:105:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] > static bool __always_inline > ^~~~~~ > kernel/events/ring_buffer.c:116:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] > static int __always_inline > ^~~~~~ > kernel/events/ring_buffer.c:416:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] > static bool __always_inline rb_need_aux_wakeup(struct ring_buffer *rb) > ^~~~~~ > AR kernel/events/built-in.o > > Signed-off-by: Mathieu Malaterre > --- > kernel/events/ring_buffer.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/kernel/events/ring_buffer.c b/kernel/events/ring_buffer.c > index 6c6b3c48db71..03e39e3df543 100644 > --- a/kernel/events/ring_buffer.c > +++ b/kernel/events/ring_buffer.c > @@ -102,7 +102,7 @@ static void perf_output_put_handle(struct perf_output_handle *handle) > preempt_enable(); > } > > -static bool __always_inline > +static __always_inline bool > ring_buffer_has_space(unsigned long head, unsigned long tail, > unsigned long data_size, unsigned int size, > bool backward) > @@ -113,7 +113,7 @@ ring_buffer_has_space(unsigned long head, unsigned long tail, > return CIRC_SPACE(tail, head, data_size) >= size; > } > > -static int __always_inline > +static __always_inline int > __perf_output_begin(struct perf_output_handle *handle, > struct perf_event *event, unsigned int size, > bool backward) > @@ -413,7 +413,7 @@ void *perf_aux_output_begin(struct perf_output_handle *handle, > } > EXPORT_SYMBOL_GPL(perf_aux_output_begin); > > -static bool __always_inline rb_need_aux_wakeup(struct ring_buffer *rb) > +static __always_inline bool rb_need_aux_wakeup(struct ring_buffer *rb) > { > if (rb->aux_overwrite) > return false; > -- > 2.11.0 >