From patchwork Thu Sep 29 09:41:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Huafei X-Patchwork-Id: 12993869 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EB22EC433FE for ; Thu, 29 Sep 2022 09:46:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=PnHl+DY0T8P9w0DCab1iYcwA7RNBPiHm7rVxWdlrDLo=; b=WfEOEWez3EhdC6 9xGejTQXDyU3NvGFufq3023ej9UuL1h2tvI32ZB2tJNYZsOR4+Ncgeq9DX0HaN8DemBepzwcVU9X+ WMpVFCHWT25+fNBznO9qKcgBrO0mnXHGEqVrcq/sQpj5vOloy2V3lRO6fWG5kLe0hSgygAeUXHQVG VhKXfSeZ7CI2ho6g9orcJqReb21mB0bM7pk6c57czBZC43PAWh5SERS/rFX4+nmcR+hA6iYW1l64M twSjLiqiGrx32SONnbk8gxw1olzVNTEK1lf9oe8tfeLhyZSbOji/Y5uGTrx1znCaSwrYnqURCVT5a q6gRB7bR8OjVEZYpZvow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1odq6z-002BxS-CB; Thu, 29 Sep 2022 09:45:45 +0000 Received: from szxga03-in.huawei.com ([45.249.212.189]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1odq6l-002Boq-KE for linux-arm-kernel@lists.infradead.org; Thu, 29 Sep 2022 09:45:33 +0000 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MdT1g4d4jzHqJp; Thu, 29 Sep 2022 17:43:03 +0800 (CST) Received: from kwepemm600010.china.huawei.com (7.193.23.86) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 29 Sep 2022 17:45:21 +0800 Received: from ubuntu1804.huawei.com (10.67.174.174) by kwepemm600010.china.huawei.com (7.193.23.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 29 Sep 2022 17:45:20 +0800 From: Li Huafei To: , , CC: , , , , , , , , , , , Subject: [PATCH 0/3] arm64: module/ftrace: Fix mcount-based ftrace initialization failure Date: Thu, 29 Sep 2022 17:41:31 +0800 Message-ID: <20220929094134.99512-1-lihuafei1@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.67.174.174] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600010.china.huawei.com (7.193.23.86) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220929_024531_853285_AE41F17E X-CRM114-Status: UNSURE ( 5.29 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series is mainly to fix the mcount-based ftrace initialization failure during module loading (see patch 3). The first two are cleanup patches. Li Huafei (3): arm64: module: Make plt_equals_entry() static arm64: module: Remove unused plt_entry_is_initialized() arm64: module/ftrace: Fix mcount-based ftrace initialization failure arch/arm64/include/asm/module.h | 13 +++++++------ arch/arm64/kernel/ftrace.c | 29 ++++++++++++++++++++++++++++- arch/arm64/kernel/module-plts.c | 19 ++++++++++++++++++- arch/arm64/kernel/module.c | 11 +++++++++++ 4 files changed, 64 insertions(+), 8 deletions(-) base-commit: c3e0e1e23c70455916ff3472072437b3605c6cfe