From: Andreas Niederl <andreas.niederl@iaik.tugraz.at>
To: Stefan Berger <stefanb@linux.vnet.ibm.com>
Cc: seabios@seabios.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [SeaBIOS] [PATCH V6 1/9] Add an implementation of a TPM TIS driver
Date: Fri, 12 Aug 2011 16:39:37 +0200 [thread overview]
Message-ID: <4E453B29.7060308@iaik.tugraz.at> (raw)
In-Reply-To: <20110810165136.716893022@linux.vnet.ibm.com>
[-- Attachment #1.1: Type: text/plain, Size: 288 bytes --]
Hi,
compiling SeaBios with your patch produces the following error for me
with gcc-4.4.5:
src/tpm_drivers.c: In function ‘tis_init’:
src/tpm_drivers.c:43: error: ‘tpm_drivers’ undeclared (first use in this
function)
The attached patch should fix this.
Regards,
Andreas
[-- Attachment #1.2: tcgbios_tpm_drivers_decl.diff --]
[-- Type: text/plain, Size: 868 bytes --]
commit 065be9bee0a0f13cdcc266161c273bd3155e6eb8 (HEAD, t/libtpms-V6)
Author: Andreas Niederl <andreas.niederl@iaik.tugraz.at>
Date: Fri Aug 12 15:47:27 2011 +0200
Move tpm_drivers[] declaration to tpm_drivers.h
diff --git a/src/tcgbios.c b/src/tcgbios.c
index 111fe8a..ae52520 100644
--- a/src/tcgbios.c
+++ b/src/tcgbios.c
@@ -86,8 +86,6 @@ static tcpa_state_t tcpa_state = {
.tpm_driver_to_use = TPM_INVALID_DRIVER,
};
-extern struct tpm_driver tpm_drivers[];
-
typedef struct {
u8 op;
} tpm_bios_cfg_t;
diff --git a/src/tpm_drivers.h b/src/tpm_drivers.h
index 6b593db..27a040f 100644
--- a/src/tpm_drivers.h
+++ b/src/tpm_drivers.h
@@ -28,6 +28,8 @@ struct tpm_driver {
u32 sha1threshold;
};
+extern struct tpm_driver tpm_drivers[];
+
#define TIS_DRIVER_IDX 0
#define TPM_NUM_DRIVERS 1
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 6163 bytes --]
next prev parent reply other threads:[~2011-08-12 14:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-10 16:51 [Qemu-devel] [PATCH V6 0/9] Add TPM support to SeaBIOS Stefan Berger
2011-08-10 16:51 ` [Qemu-devel] [PATCH V6 1/9] Add an implementation of a TPM TIS driver Stefan Berger
2011-08-12 14:39 ` Andreas Niederl [this message]
2011-08-16 15:33 ` [Qemu-devel] [SeaBIOS] " Stefan Berger
2011-08-19 17:33 ` Marc Jones
2011-08-19 19:13 ` Stefan Berger
2011-08-10 16:51 ` [Qemu-devel] [PATCH V6 2/9] Provide ACPI SSDT table for TPM device + S3 resume support Stefan Berger
2011-08-10 16:51 ` [Qemu-devel] [PATCH V6 3/9] Add public get_rsdp function Stefan Berger
2011-08-10 16:51 ` [Qemu-devel] [PATCH V6 4/9] Implementation of the TCG BIOS extensions Stefan Berger
2011-08-10 16:51 ` [Qemu-devel] [PATCH V6 5/9] Support for BIOS interrupt handler Stefan Berger
2011-08-10 16:51 ` [Qemu-devel] [PATCH V6 6/9] Add measurement code to the BIOS Stefan Berger
2011-08-10 16:51 ` [Qemu-devel] [PATCH V6 7/9] Add a menu for TPM control Stefan Berger
2011-08-10 16:51 ` [Qemu-devel] [PATCH V6 8/9] Support for Qemu-provided measurements Stefan Berger
2011-08-10 16:51 ` [Qemu-devel] [PATCH V6 9/9] Optional tests for the TIS interface Stefan Berger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E453B29.7060308@iaik.tugraz.at \
--to=andreas.niederl@iaik.tugraz.at \
--cc=qemu-devel@nongnu.org \
--cc=seabios@seabios.org \
--cc=stefanb@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).