From mboxrd@z Thu Jan 1 00:00:00 1970 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 73339C433FE for ; Thu, 29 Sep 2022 11:29:10 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6VSQxLq/HS5dUH6kCo+luIR70LLfM25GFX9HmKfjA8U=; b=bS0rdlEU/FzL/S 7OS3wUSo3XfoS0Zu4gwTt0iKSGiw8WwWFWDiM3hHFclNIDvT3ewoVug7sKXiCsQT6h2151M8hNlJt 2XkT1G3pO+fx9TSfrP6s/IZGwq+J/h9Ux9oLHdkJlvZW1IWuloFQq6iX8wFhaP7R08g06SnR0J6my +qL6QvbQyRz+rcoJwnI+M7j6KSkjtHWTsURDiLZ35PtYMl8i9ZVvH9N3mTA/c8hqC7r33dIObd2y2 S0qrKLcClv7BFh4308vzHiGBYFBPHY4gAub8a8eqz+KVnLyYty0tE2HaSIrvVJUpgqbwS1U3dA/lY AZbm4xKcNMota4o71i1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1odri8-002dmb-9c; Thu, 29 Sep 2022 11:28:12 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1odri5-002dl4-FZ for linux-arm-kernel@lists.infradead.org; Thu, 29 Sep 2022 11:28:11 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 039931A9A; Thu, 29 Sep 2022 04:28:15 -0700 (PDT) Received: from FVFF77S0Q05N (unknown [10.57.81.100]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 394F43F73B; Thu, 29 Sep 2022 04:28:06 -0700 (PDT) Date: Thu, 29 Sep 2022 12:28:03 +0100 From: Mark Rutland To: Li Huafei Cc: catalin.marinas@arm.com, will@kernel.org, rostedt@goodmis.org, mingo@redhat.com, Julia.Lawall@inria.fr, akpm@linux-foundation.org, andreyknvl@gmail.com, elver@google.com, wangkefeng.wang@huawei.com, zhouchengming@bytedance.com, ardb@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] arm64: module: Remove unused plt_entry_is_initialized() Message-ID: References: <20220929094134.99512-1-lihuafei1@huawei.com> <20220929094134.99512-3-lihuafei1@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220929094134.99512-3-lihuafei1@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220929_042809_585246_17963F25 X-CRM114-Status: GOOD ( 13.23 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Sep 29, 2022 at 05:41:33PM +0800, Li Huafei wrote: > Since commit f1a54ae9af0d ("arm64: module/ftrace: intialize PLT at load > time"), plt_entry_is_initialized() is unused anymore , so remove it. > > Signed-off-by: Li Huafei Acked-by: Mark Rutland Mark. > --- > arch/arm64/include/asm/module.h | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/arch/arm64/include/asm/module.h b/arch/arm64/include/asm/module.h > index 28514b989a0b..8096d30c5e39 100644 > --- a/arch/arm64/include/asm/module.h > +++ b/arch/arm64/include/asm/module.h > @@ -59,9 +59,4 @@ static inline bool is_forbidden_offset_for_adrp(void *place) > > struct plt_entry get_plt_entry(u64 dst, void *pc); > > -static inline bool plt_entry_is_initialized(const struct plt_entry *e) > -{ > - return e->adrp || e->add || e->br; > -} > - > #endif /* __ASM_MODULE_H */ > -- > 2.17.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel