summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2017-10-10 00:55:44 +0200
committerStefan Berger <stefanb@linux.vnet.ibm.com>2017-10-19 11:42:20 -0400
commit349ccdc89c1b76f6cdd9f8cdc412f0d806046d6b (patch)
tree18e22fad9cc9cc076f27db7faccd63220337ff78
parentd8383d61fa6e11692fb8abfe0c673ece5e1ba9bb (diff)
downloadqemu-349ccdc89c1b76f6cdd9f8cdc412f0d806046d6b.zip
tpm: make tpm_get_backend_driver() static
No need to export the function. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
-rw-r--r--include/sysemu/tpm_backend.h1
-rw-r--r--tpm.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/include/sysemu/tpm_backend.h b/include/sysemu/tpm_backend.h
index 2c798a1eb4..c6e5637f68 100644
--- a/include/sysemu/tpm_backend.h
+++ b/include/sysemu/tpm_backend.h
@@ -215,7 +215,6 @@ TPMInfo *tpm_backend_query_tpm(TPMBackend *s);
TPMBackend *qemu_find_tpm(const char *id);
-const TPMDriverOps *tpm_get_backend_driver(const char *type);
void tpm_register_model(enum TpmModel model);
void tpm_register_driver(const TPMDriverOps *tdo);
diff --git a/tpm.c b/tpm.c
index 3122227156..bc7d7470a8 100644
--- a/tpm.c
+++ b/tpm.c
@@ -31,7 +31,7 @@ void tpm_register_model(enum TpmModel model)
tpm_models[model] = true;
}
-const TPMDriverOps *tpm_get_backend_driver(const char *type)
+static const TPMDriverOps *tpm_get_backend_driver(const char *type)
{
int i = qapi_enum_parse(&TpmType_lookup, type, -1, NULL);