Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1071623ybi; Fri, 14 Jun 2019 08:09:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxY/yn3Fzogbjo73GKmaHsDcVrVcKmo7SAdILZ1JSQZRVXki1KFLLQyVC0+PA/z0vmxef1j X-Received: by 2002:a65:510c:: with SMTP id f12mr35002645pgq.92.1560524989976; Fri, 14 Jun 2019 08:09:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560524989; cv=none; d=google.com; s=arc-20160816; b=htumzf/bJss9ZG7b5ZbeSZIHW44iiJ8W6ZA9K+7+Z0s+mhv0G5y27jouMDAgbTCxMj D85zjJsWWdRtw4vMugBSM3FmGI2l5Q81F72JxAWfEhNOXQrP0dTw5SiLKgML8xRy9Oon MXGybbe5t06VZZ3pzPImtQn4qlV5ZKUu/2Wzeyh6/PI36qSYqUk5gs+5t9yZSDkori8F 5CGYyqwL5iSKm6Xy3SGMPQ2YaslmhsVNvZT0d5wXU721VY9RUsCtYWAEXYD/1eT0Jgh4 jO2bqlMDmR2mCpGZan11tg8F74feLAlVdxrv1vn9vk9VOEf/vre9Het1tU7JNjovkx4d tZ/w== 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:dkim-signature:dkim-filter; bh=mVeTUeS+JAxwsiFo6HpV+7i87tYNDODON5MnOXLcNDw=; b=vnjGlIxKDjSWMQcX+Fw4FMRXTUOXV/00odfgXrOnFSyItFxtKmx/zwnmGi2duq+0iM eHU6FMcbmWbySDcCSVp1JyUDpjrJ5nZKX6tX6KtF02ZNEqG/w+ANpSLQWUpQORoVwncS bI2Vg2ldKzuu00qLQ8LGb1zAJNQ2N3vBleffgG2pIspYFEK51ASdx8F/90jrq/IdYzqJ iU/zJzkW91oqO5kiCrhzI3f1ilUA5BPG3IBydCOMg6aJdHrkwkcsF0F5juaHSSRPG4YP T0XIwcXTbMGSpNB172Z8kbP7ZcsKEhaZxn5csNfAjdxSA6OZoCesrAU5ZfziUzOgJy0k uU8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019051801 header.b=yvQPdgIs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y5si2540784pjw.61.2019.06.14.08.09.33; Fri, 14 Jun 2019 08:09:49 -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; dkim=pass header.i=@zytor.com header.s=2019051801 header.b=yvQPdgIs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726126AbfFNPHh (ORCPT + 99 others); Fri, 14 Jun 2019 11:07:37 -0400 Received: from terminus.zytor.com ([198.137.202.136]:37509 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725780AbfFNPHh (ORCPT ); Fri, 14 Jun 2019 11:07:37 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x5EF78rB1747147 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 14 Jun 2019 08:07:08 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x5EF78rB1747147 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019051801; t=1560524828; bh=mVeTUeS+JAxwsiFo6HpV+7i87tYNDODON5MnOXLcNDw=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=yvQPdgIsBV4wpYGOvN/NnD+DwXclvRbOKlu8cQFKHX8UTvaLSs2va+w0rOT94S98e 1NGwxEvLKVbdOxNCPfSHl5N+SX7LCT9be2TR418bBWGiGjUFEmiddymt/DbNkoi3td L3RDlDB3z4oW9BJ07FhtmlXG5eZLq1igRZzUXaKY6iqnB/PYGh9kocxmfXIPv1j5M8 jG8+8mBMcHBXwTxRAJ5a2QtjmtD3nkZa9tHPAWoNnjSdP85PAtWM2sMRUb/5D4MD0N 9HX8Vavbwgx+pxsbG38zSoYDw1M0QXwp0d5GLOeIays1SC3ll0Ra3j4ySZqxJt225I QjwyUU7sBV0JQ== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x5EF77Zl1747140; Fri, 14 Jun 2019 08:07:07 -0700 Date: Fri, 14 Jun 2019 08:07:07 -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, linux-kernel@vger.kernel.org, hpa@zytor.com, tglx@linutronix.de, peterz@infradead.org, bp@alien8.de, malat@debian.org Reply-To: mingo@kernel.org, hpa@zytor.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, peterz@infradead.org, malat@debian.org, bp@alien8.de In-Reply-To: <20190524103252.28575-1-malat@debian.org> References: <20190524103252.28575-1-malat@debian.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/cleanups] x86/tsc: Move inline keyword to the beginning of function declarations Git-Commit-ID: 83e837269e87436fda1cbf82214a5494fb6b35b1 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=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: 83e837269e87436fda1cbf82214a5494fb6b35b1 Gitweb: https://git.kernel.org/tip/83e837269e87436fda1cbf82214a5494fb6b35b1 Author: Mathieu Malaterre AuthorDate: Fri, 24 May 2019 12:32:51 +0200 Committer: Thomas Gleixner CommitDate: Fri, 14 Jun 2019 17:02:09 +0200 x86/tsc: Move inline keyword to the beginning of function declarations The inline keyword was not at the beginning of the function declarations. Fix the following warnings triggered when using W=1: arch/x86/kernel/tsc.c:62:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration] arch/x86/kernel/tsc.c:79:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration] Signed-off-by: Mathieu Malaterre Signed-off-by: Thomas Gleixner Cc: trivial@kernel.org Cc: kernel-janitors@vger.kernel.org Cc: Peter Zijlstra Cc: Borislav Petkov Cc: "H. Peter Anvin" Link: https://lkml.kernel.org/r/20190524103252.28575-1-malat@debian.org --- arch/x86/kernel/tsc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c index 0b29e58f288e..75a41bddbc9d 100644 --- a/arch/x86/kernel/tsc.c +++ b/arch/x86/kernel/tsc.c @@ -59,7 +59,7 @@ struct cyc2ns { static DEFINE_PER_CPU_ALIGNED(struct cyc2ns, cyc2ns); -void __always_inline cyc2ns_read_begin(struct cyc2ns_data *data) +__always_inline void cyc2ns_read_begin(struct cyc2ns_data *data) { int seq, idx; @@ -76,7 +76,7 @@ void __always_inline cyc2ns_read_begin(struct cyc2ns_data *data) } while (unlikely(seq != this_cpu_read(cyc2ns.seq.sequence))); } -void __always_inline cyc2ns_read_end(void) +__always_inline void cyc2ns_read_end(void) { preempt_enable_notrace(); }