From patchwork Mon Feb 28 12:06:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 546687 Delivered-To: patch@linaro.org Received: by 2002:ac0:9f50:0:0:0:0:0 with SMTP id l16csp2674784imf; Mon, 28 Feb 2022 04:07:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJza6JMMlVX3JrKAiCG2vNFMimKlPXsnVgE+r1fe9Gj6s0niHmj34b7749FYEk1mBcDIt72U X-Received: by 2002:a05:6402:3549:b0:412:b31c:5509 with SMTP id f9-20020a056402354900b00412b31c5509mr19485199edd.224.1646050072151; Mon, 28 Feb 2022 04:07:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646050072; cv=none; d=google.com; s=arc-20160816; b=nbpxtU2tSicKguySRvQkzCFFEX2OIirw1tLBPjaCn7FVSdt2O6KRbkNa0m6aAAdxWA bdpAsVyM+So6vrMSf8OLz08pl7Mb2Ysn+yjvgWm1QyT+BRE0otpcsJQ/8Kzk+IGRM/b9 xtzRuZlkhV5FkGrmJryMDxdpt9QNzc7b+WwkSpqZKu5zDj4iTftnE2nmg+H4cszbA1yD RESVZrRGwU1nAprziRQdphKrT/YpvtGhyv/XU0vaq1SxVrP2XJ46MKxa3XARYVnmhv3Q dzuuN6n/XDc97zcQGs7EMVnqvECWgFshlBmvlUZ2ocmQQda/TUkWyLPseJudjtRO3bth tjPA== 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:references:in-reply-to:message-id:date:subject:cc:to :from; bh=bC83dxM8BwE9vqSRTgK/5Ut9aY6MZv+Fj2rlPw21hcw=; b=S2i0Yrr0Qg8MJN5iuA0uZ6vH/OjRHBoTUa2u0tg5qZLkfbvRhyABcUgiqmR4MTIhhG lJtrY3aK8Ua3BOGs0CVf/V+X2t9/ap27WR39bzTDrXA0hHJE1qx4WWBI7YWykyDvO6P+ 5edrNkrrFsZm+NwgmtXMQIDF0J0serE+SUfNAj1+eq1X9ansAxwBf6BAmcCwEblgxSeC XnQjltxPhLHnvgI0jos0XDt/lB0+OVDjVz328C581sazkWKSsEjN+egaeL5nFo30VAMF 6oOHn7lVhI3VPHv3KY8c0XO98NGeP80VJpCvesCmQF00IPnC+QFVoc+eOmqZEFXO8zBA FkLg== 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 a14-20020a1709063a4e00b006d0041847aasi6232643ejf.129.2022.02.28.04.07.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 04:07:52 -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 3E48083C27; Mon, 28 Feb 2022 13:07:50 +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 8D12F83BE2; Mon, 28 Feb 2022 13:07:34 +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 44B1C83B61 for ; Mon, 28 Feb 2022 13:07:29 +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 724CAED1; Mon, 28 Feb 2022 04:07:28 -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 8D4193F73D; Mon, 28 Feb 2022 04:07:26 -0800 (PST) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Simon Glass , Heinrich Schuchardt , Mario Six , Sughosh Ganu Subject: [PATCH v2 01/10] tpm: Move tpm-utils header under the include directory Date: Mon, 28 Feb 2022 17:36:29 +0530 Message-Id: <20220228120638.678137-2-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220228120638.678137-1-sughosh.ganu@linaro.org> References: <20220228120638.678137-1-sughosh.ganu@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.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 --- Changes since V1: None {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) {