Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp505267pxb; Thu, 7 Apr 2022 11:03:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVNdEvzWktArKIoBNxE/WesuKmHkw1HSc0Y7tU7TRl7G3VVn2ilq/g07oZANUrvtmZeX+w X-Received: by 2002:a17:907:6e02:b0:6e7:f79a:eb93 with SMTP id sd2-20020a1709076e0200b006e7f79aeb93mr14452955ejc.115.1649354591896; Thu, 07 Apr 2022 11:03:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649354591; cv=none; d=google.com; s=arc-20160816; b=IyYF4up3Wb+fjZ9G8ABqQHOrCsq1z+gAfTyXoluR75BnMr5kU+3eDGJymoBTQaEI/+ vwL5kZ7cygEhSsBHTeWleAPr1IScHtVJHdKlZFerc57NH9DIM3n9liWds9YBW/c/Tq4L sV2F6sPXvCZpFASaAZANOJRaO5XdUy2E/zHOouAgigNF9S1HhonYWM8afmgKCK7CXxdp czWzw11fzRfH/0ZNA8BbBC1PTNJFyOa8TKZH7d8XQgymvhKxZT+pqZcV5qVDt0V1SIjY PaFlVgmIrl6vGsxhcd7CTsnYtOBuZdCAe9J/Symo6UG5cIBTHO5svU6szAHAnPRr2D7C 84gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5/6ZzUueHS3SF2yHi16HZRPFVZW5IvH0j1r8wVbaYU0=; b=ah1loxuqubwa6iZxM9sbd1iwM1A9XtJsp0KJBrNgMIcwzkPX5t4wGegxwZk3QKALeK 3qazt39kXdtCgiSQkj04xcmViHgepdWl/7dGQLMF7gYV7WDNgKhD5tYOqHIr1Hpm2EQ8 H6igoA2z5ysd6vjngegTPYMeLZ1PzyU1b366cJcIGsTM7rLtSBtfKacL81MQAW12hhcq dlJFot0D4zGmqqGyALsb5yh21Wgu4b03zxD36JOGENVlXsLdpg0OVO4Qdy/UaCUzVTZX hExU7qA5P9Z/2x3IlfQb3sUnfMPybAPTGIHUPELpEH49Sa38gO6JbSvTkCqSztkFtiEN 4Ejw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=H3la3kpT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr14-20020a1709073f8e00b006e48d140c28si13494454ejc.506.2022.04.07.11.02.45; Thu, 07 Apr 2022 11:03:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=H3la3kpT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244735AbiDGLWE (ORCPT + 99 others); Thu, 7 Apr 2022 07:22:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234990AbiDGLVb (ORCPT ); Thu, 7 Apr 2022 07:21:31 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97E2F195D89; Thu, 7 Apr 2022 04:19:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1649330356; bh=5/6ZzUueHS3SF2yHi16HZRPFVZW5IvH0j1r8wVbaYU0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=H3la3kpTpg4Z7uOzU0ZQHQenpdBHeB5IDlmTgTean2DfC7LOJuEEYSF4L+riovkIy 0cWqenq7eMaTwGdK+mX/MIsF7PK/Cg5UjvjZMR8Uy+OkYzi2TMizC8QTISoQaQY1Wg sZtl9nHKmRd2JNzw93qBIDzovgq+u5WSj4jTTQ2A= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Venus.fritz.box ([46.223.2.23]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MplXz-1oLhfN1wzN-00qBBW; Thu, 07 Apr 2022 13:19:16 +0200 From: Lino Sanfilippo To: peterhuewe@gmx.de, jarkko@kernel.org, jgg@ziepe.ca, =robh+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, stefanb@linux.ibm.com, p.rosenberger@kunbus.com, lukas@wunner.de, Lino Sanfilippo Subject: [PATCH 4/5] tpm: tpm_tis: make functions available for external linkage Date: Thu, 7 Apr 2022 13:18:48 +0200 Message-Id: <20220407111849.5676-5-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220407111849.5676-1-LinoSanfilippo@gmx.de> References: <20220407111849.5676-1-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:p5yGYHiR+LCe1gVoENeZriGuaH9Er4iA4m9Xa6QqaP/T7wAg51g ssafnceBC/S1gKqum8GjJA4guPukkYT14wZ65DXs5IrJ5ijaVZUKm5e2xsfQ8q3sxjGqp3Q aFxQDOl6+qTJE0Q4YK9JZeUV6SGwcKH7O5q7F6kW1rb51fEQ8qydzKn0WHz2abJIhhYjI3T Ts3cIhZ1fNYX2Po0p9QTw== X-UI-Out-Filterresults: notjunk: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rbhqa+YKz/+qPA7VSZDs5DcZ0N1hYMLhodCrV7EIBFPC9Q9bY5URxAON 6hkas4z2PlDjXQ= X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,MIME_BASE64_TEXT,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhlIHRwbV90aXNfcGh5X29wcyBmdW5jdGlvbnMgdHBtX3Rpc19zcGlfcmVhZDE2LCB0cG1fdGlz X3NwaV9yZWFkMzIgYW5kCnRwbV90aXNfc3BpX3dyaXRlMzIgYXJlIGFscmVhZHkgZGVjbGFyZWQg ZXh0ZXJuIHRvIGJlIHVzZWQgb3V0c2lkZSBvZgp0cG1fdGltX3NwaV9tYWluLmMuCgpEbyB0aGUg c2FtZSB3aXRoIHRwbV90aXNfc3BpX3JlYWRfYnl0ZXMgYW5kIHRwbV90aXNfc3BpX3dyaXRlX2J5 dGVzIHRvCmFsbG93IHRoZSBleHRlcm5hbCBhY2Nlc3MgdG8gdGhlIGNvbXBsZXRlIHNldCBvZiB0 cG1fdGlzX3BoeV9vcHMuCgpUaGlzIGlzIGluIHByZXBhcmF0aW9uIG9mIHRoZSBhc3NpZ25tZW50 IG9mIFNMQjk2NzAgc3BlY2lmaWMgcGh5IG9wcyBpbiBhCnNlcGFyYXRlIGZpbGUuCgpGdXJ0aGVy bW9yZSBkZWNsYXJlIHRwbV90aXNfc3BpX2Zsb3dfY29udHJvbCBleHRlcm4sIHNvIHRoYXQgd2Ug Y2FuIHVzZSBpdAppbiBhIFNMQjk2NzAgc3BlY2lmaWMgcHJvYmUgZnVuY3Rpb24gaW4gdGhlIHNh b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