From patchwork Thu Feb 24 18:05:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 545591 Delivered-To: patch@linaro.org Received: by 2002:ac0:d8d1:0:0:0:0:0 with SMTP id b17csp437079imj; Thu, 24 Feb 2022 10:06:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJyJHh6hhlrVctBYLcx8aYu/i3BNhlyNTHQCq0mkNq5mqu+5JAlzx5jT6H0nyT77EuDZXyU9 X-Received: by 2002:a17:907:98a5:b0:6ce:8c66:e75e with SMTP id ju5-20020a17090798a500b006ce8c66e75emr3401069ejc.239.1645726001609; Thu, 24 Feb 2022 10:06:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645726001; cv=none; d=google.com; s=arc-20160816; b=0sWypNvkzgzeBtCtC55sGj+S8A1P6ayQvGFvd55YAalXCu0W8aeOrumk2KPDun5vf1 A+mM4WAvys40b3EGg/DGhTPD0C2BezobkTCwLQC376oYz0DF1McyVqPjwCEnoDpZJ27H y4gwEieEOD28tAoMMBraxMrYYn/pg4PUiMHGD8zII1mcSVbr1F4PyrdnIGgxzRew5yas xAFJhp76lj120cqZIYMkNS9+wGBE+Vw/NAsZ8Br7JXl06fhNdZS7rRLn1la1xjiIkWlV AU6ygLqFr8njBi1c7mLd6Ig+CtwV1/aU3Gf21NLkVMVcgBIE3vn5Zpm2ei3a8MWgvvap DsaA== 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:references:in-reply-to :message-id:date:subject:cc:to:from; bh=wKA3oVaXl9pS5RsgOACJw7LcXV93L02qUMS6iUBUxrM=; b=xqo0gW55NuLQhFtrlD86ov3VrIA/YHJWc584XggdHeydIkihkSjxJDrNDc1uIQBPaa K2797fiHi6iJlvrkAq+g9n6cB1CTQMxsSlOXamrsu+EHqDNL1s36CjUTfv2pB37lH9X0 gom2V16Qp/2S3a8BcU9QLuI1Zk+NXJMBZ5F4Qj2gt86vi74vVgLQEQJCqYBp9XmjhZFA T4fiLQKr5LAaHcEsyNrsQqf9I4IPIRglTgycNL8QZouaLTWW4eRlCxwODrEsWawxtCMz opyX6Za2cFzdoIFTEzMQmYmM5PoTisVDUlGS6GJ/wh+fE+KnkDQF3kZFoOQPcc6+eEfn CCfQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 k7-20020a170906578700b006d5dcacfed1si76624ejq.297.2022.02.24.10.06.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 10:06:41 -0800 (PST) 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; 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=fail (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 E064983C90; Thu, 24 Feb 2022 19:06:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 3F0D183CB1; Thu, 24 Feb 2022 19:06:20 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 8A95483C1C for ; Thu, 24 Feb 2022 19:06:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id ED379106F; Thu, 24 Feb 2022 10:06:15 -0800 (PST) Received: from a076522.blr.arm.com (a076522.blr.arm.com [10.162.16.44]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8CBB13F70D; Thu, 24 Feb 2022 10:06:13 -0800 (PST) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Simon Glass , Heinrich Schuchardt , Mario Six , Sughosh Ganu Subject: [PATCH 01/10] tpm: Move tpm-utils header under the include directory Date: Thu, 24 Feb 2022 23:35:43 +0530 Message-Id: <20220224180552.26901-2-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220224180552.26901-1-sughosh.ganu@linaro.org> References: <20220224180552.26901-1-sughosh.ganu@linaro.org> 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.5 at phobos.denx.de X-Virus-Status: Clean The random number generation functions of TPM will be moved under a dedicated driver. With this, the function declarations along with some other relevant macro definitions need to be moved under a common header file directory. Move the tpm-utils.h header file under the common include directory. Signed-off-by: Sughosh Ganu Reviewed-by: Heinrich Schuchardt Reviewed-by: Ilias Apalodimas --- {lib => include}/tpm-utils.h | 0 lib/tpm-common.c | 2 +- lib/tpm-v1.c | 2 +- lib/tpm-v2.c | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename {lib => include}/tpm-utils.h (100%) diff --git a/lib/tpm-utils.h b/include/tpm-utils.h similarity index 100% rename from lib/tpm-utils.h rename to include/tpm-utils.h diff --git a/lib/tpm-common.c b/lib/tpm-common.c index 82ffdc5341..26506f0b99 100644 --- a/lib/tpm-common.c +++ b/lib/tpm-common.c @@ -11,7 +11,7 @@ #include #include #include -#include "tpm-utils.h" +#include enum tpm_version tpm_get_version(struct udevice *dev) { diff --git a/lib/tpm-v1.c b/lib/tpm-v1.c index 22a769c587..467992e04e 100644 --- a/lib/tpm-v1.c +++ b/lib/tpm-v1.c @@ -13,7 +13,7 @@ #include #include #include -#include "tpm-utils.h" +#include #ifdef CONFIG_TPM_AUTH_SESSIONS diff --git a/lib/tpm-v2.c b/lib/tpm-v2.c index 1bf627853a..2f16b0007b 100644 --- a/lib/tpm-v2.c +++ b/lib/tpm-v2.c @@ -9,7 +9,7 @@ #include #include #include -#include "tpm-utils.h" +#include u32 tpm2_startup(struct udevice *dev, enum tpm2_startup_types mode) {