summaryrefslogtreecommitdiff
path: root/include/linux/tboot.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-04-28 07:17:03 +0200
committerBorislav Petkov <bp@suse.de>2020-04-28 11:05:44 +0200
commit767dea211cd0c68d8116d8c3b5104e82454fb44b (patch)
tree5a343dac82040e6c5c17d523a1b233fbd624f04f /include/linux/tboot.h
parent694cfd87b0c8a48af2f1afb225563571c0b975c4 (diff)
x86/tboot: Mark tboot static
This structure is only really used in tboot.c. The only exception is a single tboot_enabled check, but for that we don't need an inline function. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20200428051703.1625952-1-hch@lst.de
Diffstat (limited to 'include/linux/tboot.h')
-rw-r--r--include/linux/tboot.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/linux/tboot.h b/include/linux/tboot.h
index 5424bc6feac8..c7e424766360 100644
--- a/include/linux/tboot.h
+++ b/include/linux/tboot.h
@@ -121,13 +121,7 @@ struct tboot {
#define TBOOT_UUID {0xff, 0x8d, 0x3c, 0x66, 0xb3, 0xe8, 0x82, 0x4b, 0xbf,\
0xaa, 0x19, 0xea, 0x4d, 0x5, 0x7a, 0x8}
-extern struct tboot *tboot;
-
-static inline int tboot_enabled(void)
-{
- return tboot != NULL;
-}
-
+bool tboot_enabled(void);
extern void tboot_probe(void);
extern void tboot_shutdown(u32 shutdown_type);
extern struct acpi_table_header *tboot_get_dmar_table(