From patchwork Wed May 10 07:43:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 680505 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a41:0:0:0:0:0 with SMTP id v1csp2696954wrs; Wed, 10 May 2023 00:44:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ57jXH9ot/zWo7u1bOOwIlZPgX+bw3BrcwOBWm6HrBUTOZrbRQSxmkTTPVNrBYO3C0h3BC/ X-Received: by 2002:a05:6a00:17a3:b0:636:f5f4:5308 with SMTP id s35-20020a056a0017a300b00636f5f45308mr24614773pfg.7.1683704665420; Wed, 10 May 2023 00:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683704665; cv=none; d=google.com; s=arc-20160816; b=cM6f3/bWCWxtMnh7NglhQGFqwRkLzxb/025ooy/dbXErZBm9PJAeeXIBRr6P4VOyPr QlIy95wdSFD4WXNRHvNpfGz03MbSw/JNaJJXsqo1TBMFru0Jj+VU2AV4iWm8v1oXvLLn 1z8vEAXo8gzC9KLnZnKePVtDJUH0ptfSobUD7YEMFGyZjF2n2Dze3mH/u7F/m9lklyZ5 mH+9ttReJKRdnZ4mesb+AxCskTqDvLjBkFcjhPXnfWq/EU6fTam8dcgY0lo4c61L/hRQ nbUAFyM0alTn/30lExCXD/YI5mc7HU/pxomgNzkuw1eB69/PXjLWmNXYNxuoibUxktIJ RG0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=KC+TXHjs/c6waf3TEgEQUab7ilM9rl4Imq1m6u5deNA=; b=eQXr3W9Kbfvl55phllw29e7Bv77yAIZm68uVSpIiVy7VSR1pKHuslOAcIitP9eO6KV vk9OsWzONbV57Ly5yW/CjDOlWwfiYjNnM9XZEZkNXNQFiNJudkgOCYXirsnlyYnkmAmJ uTBxlsCxMfJCmY+tNIC2sfpEiMOzSiHjI80BpPyMNNoRJR5g6yutE1t73bkikMa+IELH oYrUjAGeGSX3j2UN5QVUwyYT3jcSiV2dD6792vhp6dSCvgjXP8lJwKr83/pizAzKklV1 CVJBagKI2ZAgOVdbr4cFdWLz3OXSIQIp6VLLjjjW3Fho3tf6O7XczXPBpG5a3FSsikrm 3eSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y0jHLvU5; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id v202-20020a6361d3000000b0050bede17e7bsi3442487pgb.347.2023.05.10.00.44.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 May 2023 00:44:25 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y0jHLvU5; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BE80685D0B; Wed, 10 May 2023 09:44:19 +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="y0jHLvU5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 58A0F86020; Wed, 10 May 2023 09:44:18 +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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (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 472388603C for ; Wed, 10 May 2023 09:44:16 +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=ilias.apalodimas@linaro.org Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3f475366522so2951955e9.1 for ; Wed, 10 May 2023 00:44:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683704655; x=1686296655; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=KC+TXHjs/c6waf3TEgEQUab7ilM9rl4Imq1m6u5deNA=; b=y0jHLvU54JMA7naZoPuM01CFbMdeIFepaDe5A8ujIJrgPJPEgZkXK9FhPQ3OwcMy6o 2oRQ85wLr9k+u9RFwKh1I77AGvSIDuBKn+kskCQTdmVanyHRhgUTdOYdY/g1jhIn/k4s Ojb7kmddaeCila5sS7bXg4IZq85L4wH3KU01C09l2Rcu1FcNJWObMsU8Y3pgsthki13c v0NzuZbo3hyS05x4pkGbhVRgAj6EhqT4oqODF3lupFmmdQ9wcuHP7+4mslQxlLQFWHre 5JQ2Sir9+QJEeCxTQ0k4+aBBh6bawe1Fx0FYJOKmiJ95XuM2j1aTvyxJPXlZB8JfSTbQ JZKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683704655; x=1686296655; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KC+TXHjs/c6waf3TEgEQUab7ilM9rl4Imq1m6u5deNA=; b=Af5AceoAJfwX5YC1e4txciCx/Vn3daIHA45IL/m4cJ+1/AGLHIUBO28rBAQ5GyMOTZ 2vzo8rPCCfgFrLDVB0AbhPrPY8ztJWBqJz5gpxJbBWH4gcaOV6FxbEydmG4HhLp2ZzTG rCfnqwDjZNCbpQ1XCf0k9K/swHSy3+Y7J6aNaSxe8qAx2Qv7FeGKru4ETleWPv99IlKa tudBdl7owZ61rvET2qGGoOTYT5HaSVLj0b6BIzGJp2TdTibiVe6oCyelbtdoXd1bXjR1 whz1ZA2qM7EdkXmldK4jyWb2pHyOEy0uq2Y9Gib94OLpxK1WVLb+dMarxDduNzRGwn9y PoyQ== X-Gm-Message-State: AC+VfDwVIPylmsSx6tnKklmEcQNCR9itDlE2KFmd57+6a7urerpcOdHO LCuh7C0THkhEWqdkEiTjciqAZR3Y2W6H3gjcjYS4aQ== X-Received: by 2002:a05:600c:21ca:b0:3f4:2c46:e74f with SMTP id x10-20020a05600c21ca00b003f42c46e74fmr3161102wmj.12.1683704655638; Wed, 10 May 2023 00:44:15 -0700 (PDT) Received: from localhost.localdomain (ppp176092130041.access.hol.gr. [176.92.130.41]) by smtp.gmail.com with ESMTPSA id p20-20020a1c7414000000b003f435652aaesm2022446wmc.11.2023.05.10.00.44.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 May 2023 00:44:15 -0700 (PDT) From: Ilias Apalodimas To: u-boot@lists.denx.de Cc: Eddie James , Ilias Apalodimas , Simon Glass , Heinrich Schuchardt , Robert Marko , Dzmitry Sankouski , Rasmus Villemoes , Michal Suchanek , Sean Anderson , Nikhil M Jain , Abdellatif El Khlifi , Andrew Davis , Safae Ouajih , Mattijs Korpershoek , Daniel Golle , =?utf-8?q?Pali_Roh=C3=A1r?= , Sughosh Ganu , Roger Knecht , Steven Lawrance , Rui Miguel Silva , Stephen Carlson , Linus Walleij , Marek Vasut , Leo Yu-Chi Liang , Kautuk Consul , Brandon Maier , Patrick Delaunay Subject: [PATCH 1/9] tpm: Fix spelling for tpmu_ha union Date: Wed, 10 May 2023 10:43:49 +0300 Message-Id: <20230510074359.2837818-1-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.39.2 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 From: Eddie James tmpu -> tpmu Signed-off-by: Eddie James Reviewed-by: Ilias Apalodimas --- include/tpm-v2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tpm-v2.h b/include/tpm-v2.h index 2b6980e441d6..6684033debef 100644 --- a/include/tpm-v2.h +++ b/include/tpm-v2.h @@ -169,7 +169,7 @@ struct tcg_pcr_event { /** * Definition of TPMU_HA Union */ -union tmpu_ha { +union tpmu_ha { u8 sha1[TPM2_SHA1_DIGEST_SIZE]; u8 sha256[TPM2_SHA256_DIGEST_SIZE]; u8 sm3_256[TPM2_SM3_256_DIGEST_SIZE]; @@ -185,7 +185,7 @@ union tmpu_ha { */ struct tpmt_ha { u16 hash_alg; - union tmpu_ha digest; + union tpmu_ha digest; } __packed; /**