Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp897416pxu; Wed, 2 Dec 2020 06:16:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyoVQhW2eePqyq502DqiiGWrK9A9qpFUnXw1tO+Cy909u2MNKragc+ZAc0PPW3ljT5gNBGd X-Received: by 2002:a05:6402:180c:: with SMTP id g12mr99775edy.268.1606918590467; Wed, 02 Dec 2020 06:16:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606918590; cv=none; d=google.com; s=arc-20160816; b=XXvuv0MgyKvFvScL3fcI3pJrL5SdiEBuG9W7GUSyBiih1kTT6nMIyrHr+EuaJGqoa1 yoiSQMYYsJ4gb3TKO/OLl74d6TooYIJz1edwk+ODsuIPb7wQ9vUQOYjy7+KPKd19QmSx KshoB5s5hZ4p2UIHkMpDwM+ODw+aLO9xo7hH/1r2sfWEbkkz2MoV25VrjSCgHDlpA0dd X0QXaFAKHpkKl/5CSGxDmZbSDIjkj9r8I1AvkSUTAI0O4bmOjFW82lGuH9RNkGY3Y3+E BK0BcGXoMqVpvQ4dMLNCC1HI3lbqBBdrRcoG9kUKAadvxWAGMM9Fv/Bc49Pd7UmtU2FO XUrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=qC7331buLxO2vuFkwsGtrm4GufkgOH2IAuIR+dyHZZA=; b=m8x+RUutFM8zP0i6knmWldL7Vk2vrNIGbSNsc2j8hywdfQMytMxLm15e9kEgVKQi0q d/cQzHbEmzAZCWg+dvLkROyHeAFw8loi8KwP3rJnH3JvufdkKEAJU+yCCzXzvOYwT7Rs mTp3q/NsCGK2/3/J7TSpjM1ZvlZWI6Fg97IKaK59rkMwiZyUNjFnQ9I9soC1CryUqSl2 3kj4BhnNVKthKOVQmbXFVuftQqVWML1YXcRZLcJJ4bnXWRLEv/padICnZOgTMYS3bh8I TGCDtzrDpm+oSefOA6wRBbRoqqpSc6jrF8frr7CFJvqoes9TsJO+R72B1H3VPuduYvL/ KE6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=FuWLRRpa; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c19si27113ejz.274.2020.12.02.06.16.05; Wed, 02 Dec 2020 06:16:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=FuWLRRpa; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730300AbgLBOM4 (ORCPT + 99 others); Wed, 2 Dec 2020 09:12:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730219AbgLBOMo (ORCPT ); Wed, 2 Dec 2020 09:12:44 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3935EC0617A6; Wed, 2 Dec 2020 06:12:04 -0800 (PST) Date: Wed, 02 Dec 2020 14:12:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1606918322; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qC7331buLxO2vuFkwsGtrm4GufkgOH2IAuIR+dyHZZA=; b=FuWLRRpanDCpzGmhuHan+9bNS71AOOvnFAy4Rvsc4/CQsz4+9UeKDO3nwaWetjX4+9xmaC aPoLYWOxoBUu3OaMA1/b3cX2REDIC53ibyE7rqjl4m1ZsScptLV/mxucXC5ViX3aRYwPbx 8aNsDJBX71XIXq/6pIXvHtY7phMymUdivetpZJZKBdJmMSt/UoGwwluc6GCsa5CB9Bv2+U X8i81PEgG+JgI7Bt0wQzg0j77l57SrI6/JukibRstTUoKBYta1c5uF90GEq7nscgAjXpF8 F55YELdgBGiNAOu7AAiPpH2zXlcMhLy1GFaGDhjtfsnRIUpkRIkBBAhJpIMXLw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1606918322; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qC7331buLxO2vuFkwsGtrm4GufkgOH2IAuIR+dyHZZA=; b=a7/ssSutxMSsxjaRzQ2h/yyX+6/xZBfKA7YNDTGOeKKo63DPRUuJeLBJ86KZ3VJw7zM76w AmOhQj1VlzFnzrBg== From: "tip-bot2 for Sven Schnelle" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: core/entry] entry: Rename enter_from_user_mode() Cc: Sven Schnelle , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20201201142755.31931-2-svens@linux.ibm.com> References: <20201201142755.31931-2-svens@linux.ibm.com> MIME-Version: 1.0 Message-ID: <160691832237.3364.17734338910542289465.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the core/entry branch of tip: Commit-ID: 6666bb714fb3bc7b2e8be72b9c92f2d8a89ea2dc Gitweb: https://git.kernel.org/tip/6666bb714fb3bc7b2e8be72b9c92f2d8a89ea2dc Author: Sven Schnelle AuthorDate: Tue, 01 Dec 2020 15:27:51 +01:00 Committer: Thomas Gleixner CommitterDate: Wed, 02 Dec 2020 15:07:57 +01:00 entry: Rename enter_from_user_mode() In order to make this function publicly available rename it so it can still be inlined. An additional enter_from_user_mode() function will be added with a later commit. Signed-off-by: Sven Schnelle Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20201201142755.31931-2-svens@linux.ibm.com --- kernel/entry/common.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/entry/common.c b/kernel/entry/common.c index e661e70..8e294a7 100644 --- a/kernel/entry/common.c +++ b/kernel/entry/common.c @@ -11,7 +11,7 @@ #include /** - * enter_from_user_mode - Establish state when coming from user mode + * __enter_from_user_mode - Establish state when coming from user mode * * Syscall/interrupt entry disables interrupts, but user mode is traced as * interrupts enabled. Also with NO_HZ_FULL RCU might be idle. @@ -20,7 +20,7 @@ * 2) Invoke context tracking if enabled to reactivate RCU * 3) Trace interrupts off state */ -static __always_inline void enter_from_user_mode(struct pt_regs *regs) +static __always_inline void __enter_from_user_mode(struct pt_regs *regs) { arch_check_user_regs(regs); lockdep_hardirqs_off(CALLER_ADDR0); @@ -103,7 +103,7 @@ noinstr long syscall_enter_from_user_mode(struct pt_regs *regs, long syscall) { long ret; - enter_from_user_mode(regs); + __enter_from_user_mode(regs); instrumentation_begin(); local_irq_enable(); @@ -115,7 +115,7 @@ noinstr long syscall_enter_from_user_mode(struct pt_regs *regs, long syscall) noinstr void syscall_enter_from_user_mode_prepare(struct pt_regs *regs) { - enter_from_user_mode(regs); + __enter_from_user_mode(regs); instrumentation_begin(); local_irq_enable(); instrumentation_end(); @@ -304,7 +304,7 @@ __visible noinstr void syscall_exit_to_user_mode(struct pt_regs *regs) noinstr void irqentry_enter_from_user_mode(struct pt_regs *regs) { - enter_from_user_mode(regs); + __enter_from_user_mode(regs); } noinstr void irqentry_exit_to_user_mode(struct pt_regs *regs)