From nobody Mon Nov 25 19:23:09 2024 Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 97AAF1D47C7 for ; Fri, 25 Oct 2024 10:08:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.35 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729850923; cv=none; b=tO5LOxcqdBC2DjVzDgqINSlHRLmECF/y7rp0Rvc2xZxJ2/UiMLAbgVinlC9B43niRQ2XfXw4shZs7/VTl4QJfD1d4wsYaUaaPXlUJ7QqcJx0+o4sHEO2mdtp5H1a09/ShyouQp6RFw5MrbW1fUc8fJkd/rlpkFsx0c3mCTlcJek= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729850923; c=relaxed/simple; bh=FLsHu0qjo5G4VRdjZlOasGkexWsOwJQe+LUn8sRCXqo=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Gr1oULvGJNMtE4AS9UtbVxsqwvRr+0stXm6oVqGcmh/FkbwEPuiiS9vgv6BCR4vvGUlCwq8ZLAP6cLjmyAvANpezaGNzlsoCgskpp7Bv1mU2dui4dTg2w8fvXEGVFUyS5vUeO1aliJwLpJcs5lYdRdta61sZtd3el95N6U7aYQQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.35 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.234]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4XZdk82QfKz1SDBV; Fri, 25 Oct 2024 18:07:12 +0800 (CST) Received: from kwepemg200008.china.huawei.com (unknown [7.202.181.35]) by mail.maildlp.com (Postfix) with ESMTPS id 94CA51401F1; Fri, 25 Oct 2024 18:08:38 +0800 (CST) Received: from huawei.com (10.90.53.73) by kwepemg200008.china.huawei.com (7.202.181.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Fri, 25 Oct 2024 18:08:37 +0800 From: Jinjie Ruan To: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH -next v4 04/19] arm64: entry: Remove __enter_from_kernel_mode() Date: Fri, 25 Oct 2024 18:06:45 +0800 Message-ID: <20241025100700.3714552-5-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241025100700.3714552-1-ruanjinjie@huawei.com> References: <20241025100700.3714552-1-ruanjinjie@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemg200008.china.huawei.com (7.202.181.35) Content-Type: text/plain; charset="utf-8" The __enter_from_kernel_mode() is only called by enter_from_kernel_mode(), remove it. No functional changes. Signed-off-by: Jinjie Ruan --- arch/arm64/kernel/entry-common.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/arch/arm64/kernel/entry-common.c b/arch/arm64/kernel/entry-com= mon.c index ccf59b44464d..a7fd4d6c7650 100644 --- a/arch/arm64/kernel/entry-common.c +++ b/arch/arm64/kernel/entry-common.c @@ -36,7 +36,7 @@ * This is intended to match the logic in irqentry_enter(), handling the k= ernel * mode transitions only. */ -static __always_inline irqentry_state_t __enter_from_kernel_mode(struct pt= _regs *regs) +static noinstr irqentry_state_t enter_from_kernel_mode(struct pt_regs *reg= s) { irqentry_state_t ret =3D { .exit_rcu =3D false, @@ -55,13 +55,6 @@ static __always_inline irqentry_state_t __enter_from_ker= nel_mode(struct pt_regs rcu_irq_enter_check_tick(); trace_hardirqs_off_finish(); =20 - return ret; -} - -static noinstr irqentry_state_t enter_from_kernel_mode(struct pt_regs *reg= s) -{ - irqentry_state_t ret =3D __enter_from_kernel_mode(regs); - mte_check_tfsr_entry(); mte_disable_tco_entry(current); =20 --=20 2.34.1