Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp615623imm; Fri, 22 Jun 2018 02:14:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIfhYULNepT7Z+94NjkcEt2pAOCay0a2aqmYyTHIDLayKGmP4/gJi9EesPkCNFuKlVm55Pz X-Received: by 2002:a65:6004:: with SMTP id m4-v6mr698089pgu.124.1529658859934; Fri, 22 Jun 2018 02:14:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529658859; cv=none; d=google.com; s=arc-20160816; b=amwrf3KYr/UGo2IzzcxiZR0btzxg+ZxM6C5FTvrcuKequLup++JepfpH/m+yP28CG+ tTJ80NbQTZqWV1Djndh+BVQ/WqjsqqByLF6RKyPY+rkqorFovdAOZVth+TR+YusYF6TF l6WK+qUDPiBzLcvIRrawMH1itJwTqrblw9+hLomsJwLCINtY+mkGoBuQ8G/7zjQrWu7d f6FumIG98OqWIseF2V/ChDkV12vyy7Gl9HWC2VqqGspdVqgzUqPAbGKGe2vC1hit1TGc HarOihmxo6QWBgTuABTynMbLIfrrmE7cd2//Vo+l+1UKYXFWuz0S/zD5TN35kI5mBPau APHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=WS4hpu/X4RaK6Lr6QQ6FiSKr41b3UvDf040cVdd1DgE=; b=aspDRLfuSFiIa4wHuLz4zpZBCYcKTA6sUgbO9fz6+LTFHDUJRE4FdUQXkyNmVabT1C R3p5uUVDC6gaU0IcyBudiqo7fngJGGpZrRWS0T41P1KfweQVrLikOw66i+EkO2XpxKAd ESoE+USDBLfJZn9cwecZJEfiTdNPTQ3mzA97Z76j9s4BU2V+TGtEu/V2d77GH+wQwfQ/ xrXqa4gTKiTXn+kTulvtNZu8myerQ0LpMmnqu8UbyuwFIsdC3nxWu+BPOCava1kcO+Iw KZ/pB9u59XqqyiLd7DAmyMDahsOdSlLFrxI1ZdnhXSaKBtrQt2EKO3mL90IBwAficBEx VrDQ== 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 g2-v6si7203092plp.233.2018.06.22.02.14.01; Fri, 22 Jun 2018 02:14:19 -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 S1751411AbeFVJNV (ORCPT + 99 others); Fri, 22 Jun 2018 05:13:21 -0400 Received: from terminus.zytor.com ([198.137.202.136]:35921 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751191AbeFVJNS (ORCPT ); Fri, 22 Jun 2018 05:13:18 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w5M9CrSu018024 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 22 Jun 2018 02:12:53 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w5M9Cqph018021; Fri, 22 Jun 2018 02:12:52 -0700 Date: Fri, 22 Jun 2018 02:12:52 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Mathieu Malaterre Message-ID: Cc: mingo@kernel.org, malat@debian.org, tglx@linutronix.de, namhyung@kernel.org, jolsa@redhat.com, peterz@infradead.org, alexander.shishkin@linux.intel.com, hpa@zytor.com, torvalds@linux-foundation.org, acme@kernel.org, linux-kernel@vger.kernel.org Reply-To: mingo@kernel.org, malat@debian.org, tglx@linutronix.de, jolsa@redhat.com, namhyung@kernel.org, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, acme@kernel.org, hpa@zytor.com, alexander.shishkin@linux.intel.com, peterz@infradead.org In-Reply-To: <20180308202856.9378-1-malat@debian.org> References: <20180308202856.9378-1-malat@debian.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf/core: Move the inline keyword at the beginning of the function declaration Git-Commit-ID: 57d6a7938a8fc6cee8420b40ca244220b41721f5 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 57d6a7938a8fc6cee8420b40ca244220b41721f5 Gitweb: https://git.kernel.org/tip/57d6a7938a8fc6cee8420b40ca244220b41721f5 Author: Mathieu Malaterre AuthorDate: Thu, 8 Mar 2018 21:28:56 +0100 Committer: Ingo Molnar CommitDate: Fri, 22 Jun 2018 11:07:47 +0200 perf/core: Move the inline keyword at the beginning of the function declaration When building perf with W=1 the following warning triggers: 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 ^~~~~~ ... Move the inline keyword to the beginning of the function declaration. Signed-off-by: Mathieu Malaterre Cc: Alexander Shishkin Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Linus Torvalds Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: trival@kernel.org Link: http://lkml.kernel.org/r/20180308202856.9378-1-malat@debian.org Signed-off-by: Ingo Molnar --- 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 1d8ca9ea9979..d11f60cbe8ca 100644 --- a/kernel/events/ring_buffer.c +++ b/kernel/events/ring_buffer.c @@ -103,7 +103,7 @@ out: 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) @@ -114,7 +114,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) @@ -414,7 +414,7 @@ err: } 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;