From patchwork Thu May 16 21:11:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raymond Mao X-Patchwork-Id: 1936237 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=nuDmAqX8; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VgN8Y5jffz1ydW for ; Fri, 17 May 2024 07:12:29 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 359C188488; Thu, 16 May 2024 23:12:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="nuDmAqX8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DEC9288490; Thu, 16 May 2024 23:12:22 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 012C188486 for ; Thu, 16 May 2024 23:12:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=raymond.mao@linaro.org Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-a59b81d087aso343904066b.3 for ; Thu, 16 May 2024 14:12:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715893939; x=1716498739; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4M9/M4NQ4sJT2Ey+CGPaC9WJfX7bubF8lZzmPc0HNXg=; b=nuDmAqX80y7N2J9dO5z5NPwcM+P/mLC1XPpVOMIHMXb0K4aqIvh7/lTAERwrVlo0B0 CCqUwU1f5cTjbeJ7swZO4zqhV/hPT7OGwYM44gWcODHrD1NNiEoMEqGyDgPykLXAgFIq OJjwTxXd/sMvvU4dnPYgYKagCeVRagZsaRySU3J9o1Ctwqeq2ohBNExsc4wdsf9detuu 5Pn7KhrDl6d/sq0EOKpzRAZQVBO+Rr+ZdlgrTrkcUVr2tXu1Rxmtl7ts4aYksqxVtz+o FKwE6bFOS8QUWqsKhnYsV3A6RAX+T3Pt7sMIf7sDWp9QvlsN3gANZ3tpVZ4ZpJ3FR0WI RnmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715893939; x=1716498739; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4M9/M4NQ4sJT2Ey+CGPaC9WJfX7bubF8lZzmPc0HNXg=; b=izUnCbT0zXzSwF7Ekwh6y3JW6Ie0zPHv1sA2XdHKG2yaNXVIWsDNghzPWScKVeQVcF Zqjl8YOV9kblMZj76PQhiNlU4n4/NbyDRixcj6fCnROgF2A6FJGlfab/Zf5R8BdJzaEF lNrsYT7Br9nWwf/Haee1hUmSUERDTA3KCyunpd+8VC/TDU0GAACZtuv877nIQd5tYDsg 0Qayvg0LYWzqzlZFM4hOR9CovDqRDrN2TWlXcfqv4xamQHJPQAqO4fLEC2TuyhkFEbem u1lZh5p57qtghfXcwhgAE9w7NgbXKpqIsEWEwzCx21Qpzba3H81/x4JFjs15rAO815Bx 3Elw== X-Gm-Message-State: AOJu0YyZ0IG1PLcRCxK+eaQ6pQBzGP6Wf8gEvZ/6wpujCkOFy1BvyOY3 vvj8S5kJIU8kZuG58fhTec90xEEecdpejWQuIuSdUXktYCwdK5PP9cUzuQ/NcDB1vl8aqE29mpV 1 X-Google-Smtp-Source: AGHT+IGqT73hIvx0bC0xXBD90/216X4Fh/wcOOACUgxw9oeAnENdLqgg26uAF1PxQU1hftlBzAWmZA== X-Received: by 2002:a17:906:4a95:b0:a5a:1562:5184 with SMTP id a640c23a62f3a-a5a2d53af6amr2015883666b.3.1715893938880; Thu, 16 May 2024 14:12:18 -0700 (PDT) Received: from ubuntu.localdomain ([149.14.240.163]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7d09sm1021582266b.107.2024.05.16.14.12.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 14:12:18 -0700 (PDT) From: Raymond Mao To: u-boot@lists.denx.de Cc: Raymond Mao , Tom Rini , Ilias Apalodimas , Alexey Brodkin , Eugeniy Paltsev , Walter Schweizer , Phil Sutter , Tony Dinh , Mario Six , Heinrich Schuchardt , Simon Glass , Roger Quadros , Nishanth Menon , Jonathan Humphreys , Igor Opaniuk , Marek Vasut , Bin Meng , Caleb Connolly , Masahisa Kojima , Eddie James , Jassi Brar , Masami Hiramatsu , Michal Simek , AKASHI Takahiro , Etienne Carriere , uboot-snps-arc@synopsys.com Subject: [PATCH v3 2/4] efi_loader: remove redundant hash includes Date: Thu, 16 May 2024 14:11:50 -0700 Message-Id: <20240516211156.1819939-3-raymond.mao@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240516211156.1819939-1-raymond.mao@linaro.org> References: <20240516211156.1819939-1-raymond.mao@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Remove the redundant includes of u-boot/sha1.h, u-boot/sha256.h and u-boot/sha512.h Signed-off-by: Raymond Mao Reviewed-by: Tom Rini Reviewed-by: Ilias Apalodimas --- Changes in v2 - None. Changes in v3 - None. lib/efi_loader/efi_signature.c | 1 - lib/efi_loader/efi_tcg2.c | 3 --- 2 files changed, 4 deletions(-) diff --git a/lib/efi_loader/efi_signature.c b/lib/efi_loader/efi_signature.c index f338e732759..184eac8cddb 100644 --- a/lib/efi_loader/efi_signature.c +++ b/lib/efi_loader/efi_signature.c @@ -17,7 +17,6 @@ #include #include #include -#include const efi_guid_t efi_guid_sha256 = EFI_CERT_SHA256_GUID; const efi_guid_t efi_guid_cert_rsa2048 = EFI_CERT_RSA2048_GUID; diff --git a/lib/efi_loader/efi_tcg2.c b/lib/efi_loader/efi_tcg2.c index b07e0099c27..ac056dcfc55 100644 --- a/lib/efi_loader/efi_tcg2.c +++ b/lib/efi_loader/efi_tcg2.c @@ -19,9 +19,6 @@ #include #include #include -#include -#include -#include #include #include #include