From patchwork Fri Apr 29 09:43:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Zhongjin X-Patchwork-Id: 12831704 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 65AB5C433EF for ; Fri, 29 Apr 2022 10:00:05 +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:References:In-Reply-To: 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: List-Owner; bh=jyuDf0A/NT/T48FBD5KeYwSdNsNcRphnyAjc4SZ1T7c=; b=PmBQTLitt8uxWB qCWFjBFZLg3hln4ph/+6xiMfZLFwFasH3KTU5DuEBvyKrF9VjT8aQyxpZs6gWehu+3fOb9XnUOAgD NvQy3Hn+4FlYZLLhnKl+UhRJ6v4T1jYkQkDviKMwli0uogZWb6K79kI1fDpzlkC2PdDdtel8V74i3 mpRKK6/BJuQc5CtRIg4/JKuBTC0Q3kw6y+Xd2nT6sXygsLy9E3M2KYpzTdtwDHQ98wNglHUCdjvpK ORTAhqDC9g8I02hyx3h7ZFXwtYxKqSyn9HHViQx393xElgMzCcMcgmF02Y1/GpK5kilafMB2pa4m5 XrrNSP6HJav517zTuyXQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nkNOf-00AZXo-OX; Fri, 29 Apr 2022 09:58:46 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nkNC1-00ATgc-Pm for linux-arm-kernel@bombadil.infradead.org; Fri, 29 Apr 2022 09:45:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=taQxQI1pfpgs6/qnL1/1hi1DJA2mlPPVStrxL2lm7Gk=; b=arEkQo0M7FCiXXJ2ymBRMLXtkx utEEt5pteqEsZZFp0BD5fAUXS0DRqX//V3YQMA9E6lGPbWedROSb5J3nHYVkyKc7poIDmoW8dlFy7 0C9q4Ea7U12kc53plK4XTyPmMJNYAaU7oNbUm33AGhMem3guD6RNJ+UUPpWTWMRKzJ9WOgKhRSiSc Rjm3ZI8+eDiw2JH2Ymh6uL8feD2oFkqq+OoRxl702BEKuaT6j6ASGxOhvZAHyHBI8jDbz6gdVibQV dHvMsStMONeFVcDAR/Wfpp4/PmFiFJ+yKnQDZJTKfyCGWzrjiUoI8E2EQkiIDLAOA97fzVt16AXIO tWm3KbNw==; Received: from szxga02-in.huawei.com ([45.249.212.188]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nkNBr-009ZrE-6t for linux-arm-kernel@lists.infradead.org; Fri, 29 Apr 2022 09:45:39 +0000 Received: from dggpemm500023.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KqSJP1nm2zhYsL; Fri, 29 Apr 2022 17:44:53 +0800 (CST) Received: from dggpemm500013.china.huawei.com (7.185.36.172) by dggpemm500023.china.huawei.com (7.185.36.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 29 Apr 2022 17:45:14 +0800 Received: from ubuntu1804.huawei.com (10.67.175.36) by dggpemm500013.china.huawei.com (7.185.36.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 29 Apr 2022 17:45:14 +0800 From: Chen Zhongjin To: , , CC: , , , , , , , , , , , , , , Subject: [RFC PATCH v4 26/37] arm64: crypto: Remove unnecessary stackframe Date: Fri, 29 Apr 2022 17:43:44 +0800 Message-ID: <20220429094355.122389-27-chenzhongjin@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220429094355.122389-1-chenzhongjin@huawei.com> References: <20220429094355.122389-1-chenzhongjin@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.175.36] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm500013.china.huawei.com (7.185.36.172) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220429_104531_595877_D4377AE4 X-CRM114-Status: UNSURE ( 8.41 ) 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 From: Julien Thierry The way sha256_block_neon restore the stackframe confuses objtool. But it turns out this function is a leaf function and does not use FP nor LR as scratch register. Do not create a stackframe in this function as it is not necessary. Signed-off-by: Julien Thierry Signed-off-by: Chen Zhongjin --- arch/arm64/crypto/sha512-armv8.pl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm64/crypto/sha512-armv8.pl b/arch/arm64/crypto/sha512-armv8.pl index 35ec9ae99fe1..dca0f22df07f 100644 --- a/arch/arm64/crypto/sha512-armv8.pl +++ b/arch/arm64/crypto/sha512-armv8.pl @@ -644,8 +644,6 @@ $code.=<<___; .align 4 sha256_block_neon: .Lneon_entry: - stp x29, x30, [sp, #-16]! - mov x29, sp sub sp,sp,#16*4 adr $Ktbl,.LK256 @@ -732,8 +730,7 @@ $code.=<<___; mov $Xfer,sp b.ne .L_00_48 - ldr x29,[x29] - add sp,sp,#16*4+16 + add sp,sp,#16*4 ret .size sha256_block_neon,.-sha256_block_neon ___