Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5378524iog; Wed, 22 Jun 2022 18:54:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v6DJZplMHlF20DwjBnDXEOBke8yopZirrK0khieTXcRzkVdRY4avXg8hbnL1GDxBehoRvj X-Received: by 2002:a05:6a00:842:b0:51b:f289:7354 with SMTP id q2-20020a056a00084200b0051bf2897354mr38382675pfk.75.1655949278334; Wed, 22 Jun 2022 18:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655949278; cv=none; d=google.com; s=arc-20160816; b=h9tqfRce/R83y29fU+82slJqsI63ZASE5wqV0yBITBa8L209oS3gAw3VShS+gPmQj+ Kqci3vQiBXAc7Ps2fx8qNbhE+alxbwmyqU/oymk6fE/6Il4c6es40Q4i6MzjceAelFGb mKPFxXlHKycQgRnXfFnVY7LNVg3vaFmxGxgWKDrHFkbQXK7ksb2IXZo6EnnPnQ1NFD1F fUG+Oi18SuqbegXtmw08oxoiRDx8Glz8xBsc2DLxe3Q+IC93Zfa1jpJkv4ygD7rgLz6B BfLsSV5OoGQmdfBNwpqU01bkjxTzd9setVJbC6Ns9AFCyahGip2PdmqieEeTB4nzrVC/ A6BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=yi3S/ZJJwR7646IkS2I3NeGtAdyri0qjMZiBBojMj98=; b=cHwIaHjDjERGRMcXjuMXt2ju+LzZ3Opk5Md+n1axfOPkt928KXjkeQbl966h8AfmCi dI9bZVaQq3It5MsVUVlMiSax1JhljIKANSNXQtctoK1cutPIXicw756r65z4U806l4+L iKMcfQ/q2v17Hjq/YoEJIFQBStTF1xzU+2FCGGE1mvTLrE8/tcf3JYTWUojsbytsbZVL 4W+cx6IM/y5e9yEKWLdz/nNgIkhIHgc5LE/NFdYFcjzbfU12PU7qnkKHzy5SQays/vsk xSdNc5IqB3Cvbd6gZP4l4NrDS4QZs/5076KwjVM8tlgTKZc25a8WvfzhCjFM1hxehcZ4 8+Mg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t2-20020a056a00138200b005182fb67e66si20198494pfg.159.2022.06.22.18.54.26; Wed, 22 Jun 2022 18:54:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378145AbiFWBxe (ORCPT + 99 others); Wed, 22 Jun 2022 21:53:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377604AbiFWBwW (ORCPT ); Wed, 22 Jun 2022 21:52:22 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C6DA43AF3; Wed, 22 Jun 2022 18:51:53 -0700 (PDT) Received: from dggpemm500022.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LT39F19rvzkWVh; Thu, 23 Jun 2022 09:50:09 +0800 (CST) Received: from dggpemm500013.china.huawei.com (7.185.36.172) by dggpemm500022.china.huawei.com (7.185.36.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 23 Jun 2022 09:51:51 +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; Thu, 23 Jun 2022 09:51:50 +0800 From: Chen Zhongjin To: , , , , , CC: , , , , , , , , , , , , , , Subject: [PATCH v6 26/33] arm64: crypto: Remove unnecessary stackframe Date: Thu, 23 Jun 2022 09:49:10 +0800 Message-ID: <20220623014917.199563-27-chenzhongjin@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220623014917.199563-1-chenzhongjin@huawei.com> References: <20220623014917.199563-1-chenzhongjin@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.175.36] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500013.china.huawei.com (7.185.36.172) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 1882c4110026..6e2a96e05c5a 100644 --- a/arch/arm64/crypto/sha512-armv8.pl +++ b/arch/arm64/crypto/sha512-armv8.pl @@ -648,8 +648,6 @@ $code.=<<___; .align 4 sha256_block_neon: .Lneon_entry: - stp x29, x30, [sp, #-16]! - mov x29, sp sub sp,sp,#16*4 adr $Ktbl,K256 @@ -736,8 +734,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 ___ -- 2.17.1