From: Juergen Gross Date: Mon, 27 Nov 2023 10:25:21 +0000 (+0100) Subject: Mini-OS: add EXPORT_SYMBOL() instances to tpm_tis.c X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ec9bf07942c2354a078bd5381c046e272fca847c;p=people%2Fandrewcoop%2Fmini-os.git Mini-OS: add EXPORT_SYMBOL() instances to tpm_tis.c Add the needed instances of EXPORT_SYMBOL() to tpm_tis.c. Signed-off-by: Juergen Gross --- diff --git a/tpm_tis.c b/tpm_tis.c index c3998f2..ad95e28 100644 --- a/tpm_tis.c +++ b/tpm_tis.c @@ -673,6 +673,7 @@ int tpm_tis_request_locality(struct tpm_chip* tpm, int l) { printk("REQ LOCALITY FAILURE\n"); return -1; } +EXPORT_SYMBOL(tpm_tis_request_locality); static uint8_t tpm_tis_status(struct tpm_chip* tpm) { return ioread8(TPM_STS(tpm, tpm->locality)); @@ -1264,6 +1265,7 @@ abort_egress: } return NULL; } +EXPORT_SYMBOL(init_tpm_tis); int tpm_tis_cmd(struct tpm_chip* tpm, uint8_t* req, size_t reqlen, uint8_t** resp, size_t* resplen) { @@ -1281,6 +1283,7 @@ int tpm_tis_cmd(struct tpm_chip* tpm, uint8_t* req, size_t reqlen, uint8_t** res memcpy(*resp, tpm->data_buffer, *resplen); return 0; } +EXPORT_SYMBOL(tpm_tis_cmd); #ifdef HAVE_LIBC #include @@ -1392,6 +1395,7 @@ int tpm_tis_open(struct tpm_chip *tpm) return tpm->fd; } +EXPORT_SYMBOL(tpm_tis_open); /* TPM 2.0 */ @@ -1550,4 +1554,5 @@ abort_egress: } return NULL; } +EXPORT_SYMBOL(init_tpm2_tis); #endif