Received: by 10.223.185.116 with SMTP id b49csp40734wrg; Thu, 8 Mar 2018 12:30:48 -0800 (PST) X-Google-Smtp-Source: AG47ELtqfrG7thwtsezssRJZzh/3m7++KGA2SDmkzMQVSrnYgBXW0b1Knsq44YtEaF2Y33VsZBEy X-Received: by 10.101.70.203 with SMTP id n11mr21323502pgr.377.1520541048056; Thu, 08 Mar 2018 12:30:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520541048; cv=none; d=google.com; s=arc-20160816; b=S4wQfXELrOo/fhIZyOTviF0zWz/Lo7JFNG6kMFos2sQvpifi4DJhDk7C47pfT9lrrA jbEbaYyt7cUxR9LPuazRh7F6zTeSF/tWK/xFkifmhEd2hLfJYFtqRyYHvE8INUWvHF2Y vH5ClN6SnwPv22NtV2N1Z8iEpwdSVUmcGE/SlSuM8OlAaOFh4siWhEmGZD4viQX84GAX 02HRcPimco3SaPAze1h+azR4pmSUosLj/JVHuJLeUjHFoVmq3aSfk0uLzhuAR7V0X/KS 03lKlrd+av+Stq8u2Oq4wmDCrUMjqb0ElYlAyVkN8Rhvo84Zy+y6LViXZoj2JI2hxUwa ValA== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=LEDcYVGzul/QWrBPZpGET/nn0dnYyeEwLT2svLPTlmM=; b=edH/hcMX+w06zrff614YFobwPrNg24WhXRTOhu3saN57xBxDmbfEdoyvi2OiaiX/CO M6bBqOVeuV1PSCZwswL0xcxYpPCIueQqVWuJ7SZhu0p8zXUciFhDkke7QDbzEtZzIqoM cjJXwc58yO2BF/hfFxBwhACTkknvyH2KcAGFp+3tYYDpr4agUSKSMOOGFarWAot2BmxI vxRqNW2GNrzDweficdR/PFPDCunmY5H05F/0Y9hPD2Yg0ohBAdwGJ7bCFP4BOR2on6ZS /XCUQMD8wdQS8YY0AhW6Z7axkEioz4ugCUwESg/prI79XgYxk3+Et++2FkNILzRn8a3N HH7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=CxCODC2m; 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 n64si16209208pfb.281.2018.03.08.12.30.33; Thu, 08 Mar 2018 12:30:48 -0800 (PST) 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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=CxCODC2m; 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 S1750937AbeCHU3e (ORCPT + 99 others); Thu, 8 Mar 2018 15:29:34 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:52491 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750761AbeCHU3d (ORCPT ); Thu, 8 Mar 2018 15:29:33 -0500 Received: by mail-wm0-f66.google.com with SMTP id t3so173506wmc.2 for ; Thu, 08 Mar 2018 12:29:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LEDcYVGzul/QWrBPZpGET/nn0dnYyeEwLT2svLPTlmM=; b=CxCODC2mqMG7ecX5xI34TFR9DsYUG36uUiT7Nk9BpNI5LY84HXe4EaUQHLmWVcibK3 M5THSHQ+RM6E/pORMY85JUBi82K6/kc9IoxGEPogB6gyD8L6Ge9oCTOR0iaExNXD4kdd /M17SN8NwKX4HAhFsVeyHIr49GME3zf76d0t4JfL6kM7cnsKSSn5Icyh5s8QYTp7FnzO tUzV4gQNLvnM++jEs9EYlikZZOltbOeop5IOiAbDon/v9G23UsCeWyykTWE3xMgsNGzx Eupb6WX1VCDiseH2zW1qKKgHyqyAFOvhnmb2OnIYyMRrcLn5MXhVuakljg5cpuQQGGWZ nseA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=LEDcYVGzul/QWrBPZpGET/nn0dnYyeEwLT2svLPTlmM=; b=U1NXYyWWe4U3fhnUeEwEHjekZX0WsRAiAP6W5DYKWWaFfziMKvbOpWWyytGVk5hWM2 RK76rqlBaFVrhjxJG6BU+MEKsG9KjJFYE4YQa1mIU/Z52mIjunQGt8DPDtoZJ8Tps1mx Qs45I2s+Un4d+eNraUA/72KjY+QNI/xfYEEADUUtIROVBFQPbLsuGVh0r/KwIF/XIdEI f6Cj7ADRE2QopVWt47oJIum+V6dKjERHK0JfNoKEt5jBX+4ASU5WtEqu5UnJmT8vf7tR WWF+xBPbZlFsiNPqkTueK5eOcZXjh1WRUOWCAoC+lIDXeY34cnG4wtdpYOYSCAZiEWLP Arhw== X-Gm-Message-State: AElRT7G0kg/iH4smFuwf9uQsZuf+tkF5qcqQoHD3Sxz35BQf5Rw6HpyV Ik5uQ2bnNgTUQ74j4DSMWJJhS3n3 X-Received: by 10.28.143.149 with SMTP id r143mr100544wmd.24.1520540972424; Thu, 08 Mar 2018 12:29:32 -0800 (PST) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id z18sm16332810wrh.2.2018.03.08.12.29.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Mar 2018 12:29:30 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 7091410C03F3; Thu, 8 Mar 2018 21:29:29 +0100 (CET) From: Mathieu Malaterre To: Peter Zijlstra Cc: trival@kernel.org, Mathieu Malaterre , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel@vger.kernel.org Subject: [PATCH] perf/core: Move the inline keyword at the beginning of function declaration Date: Thu, 8 Mar 2018 21:28:56 +0100 Message-Id: <20180308202856.9378-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 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 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