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 05BCBC7EE32 for ; Wed, 25 Jun 2025 07:36:33 +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=D8R4CF66zJKn5TUC8bX+531WAo3Wdb1ueoYZFGrKYBY=; b=PvRuy1V336I1iR AE050EuLpFcdWbN5wKse81b1NmOjKywtcnFZrVQD21tYnp8WBl6ldXFJSTGIsC/Mmo43aEJcdH3qn nOP6r2NitDd9xICkdiDN22+IiV7c1n93+IAG6M2YkWFdWxY5zHNaPHhykHHBkB04zomNUU2I4AE2V 6zA/IZHp5qOpejxfF1Ky51eJA6Scggbe3UvfjGKfG3kXXraZxvXWgdmaf8DZdNLo1sq3kPLoWhM27 fWNbtQkbQAz34OA37tJ3LLhBKeMbGeOsAVDmL7RZjqivT0pBSs1APtC7nRG9XyCAcWlfkKdhKMaBH dUMtd+njc7sOCNVcSTWQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uUKgF-00000007puJ-0zqt; Wed, 25 Jun 2025 07:36:27 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uUKHD-00000007lOY-2WWs; Wed, 25 Jun 2025 07:10:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=KYmOcR+Ty6ORVYOprUyh9SHSbbSmp4y4Zcmg/7D/5kY=; b=ZJvFllUJTzbgQkkFzdAHnJsHIa UMo+xAnULOSHxMHkQFACnkQakXq/+o3150cAtc/U43yQAsDliFITONiviQ0zG4FHc56uZq+ZErI6N f+8CefnnxDzjyTtkJY+i9twLJWbpoULtb8gzRx8bvJJ9cqqQuaFUOsP3HNp1TdGZojj9f5tXbRHII XiUcQU3D0Z6oahHdlwPxYgWXJkMbJVlLiOoL5XXmDXnurpggITtRq8iY7HA36Q4UYlVcXoSQ9V9ku bcBaAsaHWmxUVjb3PCy46OCjOYsmaL/oIwJPhUaaahEj2qLagBG91BwFmA3BP09du6DSQbySGaohO /2tiYJZw==; Received: from sea.source.kernel.org ([172.234.252.31]) by desiato.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uUKHB-00000005ddF-031A; Wed, 25 Jun 2025 07:10:34 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 9F8F44AFEC; Wed, 25 Jun 2025 07:10:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 303BCC4CEF4; Wed, 25 Jun 2025 07:10:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1750835429; bh=1DNk7tX1YvvlA6uSWHlfTS+Bb3s1eS+aWteQQPlb1JM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nqVpQzpxUnKXPMGrZ1EGYozacdniZ2Ei1z0BDb9CArbXCIdhByuU9MICPVrjgSPOs 7I9XtCbuuhB6jWShxX4zi3pBcGSRDxsestEYjY/AaCTGarh3AmLmMYGVmsNHH1evss mVm19s4IODFj3zJjHA7UoVak1Yktt1eeG3x4UvGqP1eBFy9no7S/Z2ct6nwLqYlGJV Hfjb4JOyB1ZwjnDHOmsYhRJU6IML4Cg4wPn/XWbASQCigU+IWieRPJoRfKCL2onHLw c93er26kDV2ZMVmMh48fmsPNOWrh8d0egdKTyR/kurxPY6+tKSegQkxGRUJK1Iqp4n jcy1kRYUqSgXw== From: Eric Biggers To: linux-crypto@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Ard Biesheuvel , "Jason A . Donenfeld" , linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org, Eric Biggers Subject: [PATCH 05/18] lib/crypto: sha512: Do not include Date: Wed, 25 Jun 2025 00:08:06 -0700 Message-ID: <20250625070819.1496119-6-ebiggers@kernel.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250625070819.1496119-1-ebiggers@kernel.org> References: <20250625070819.1496119-1-ebiggers@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250625_081033_278943_8AB5800B X-CRM114-Status: UNSURE ( 9.80 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Since the SHA-512 code is now consolidated into a single translation unit except for assembly code, there is no longer any need for an internal header. Indeed, lib/crypto/sha512.c relies on only for indirect inclusions. Stop including it. This prepares for the later removal of this header, once the SHA-256 code is reorganized similarly and stops needing it too. Signed-off-by: Eric Biggers --- lib/crypto/sha512.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/crypto/sha512.c b/lib/crypto/sha512.c index fe9d98b9b7db9..f5a9569a7ef96 100644 --- a/lib/crypto/sha512.c +++ b/lib/crypto/sha512.c @@ -7,15 +7,16 @@ * Copyright (c) 2003 Kyle McMartin * Copyright 2025 Google LLC */ #include -#include +#include #include #include #include #include +#include #include static const struct sha512_block_state sha384_iv = { .h = { SHA384_H0, SHA384_H1, SHA384_H2, SHA384_H3, -- 2.50.0 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv