summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2020-12-10 15:48:19 -0500
committerKevin O'Connor <kevin@koconnor.net>2021-12-18 11:39:13 -0500
commit33fa7082b870c387e839eb8b5a29738442a991ae (patch)
tree394c171baebdc56fd7d473fea5fe16379c2144e7 /src
parent107391619a0dafd5900e8933e72dd6fdae97d2d1 (diff)
downloadqemu-seabios-33fa7082b870c387e839eb8b5a29738442a991ae.tar.gz
smbios: Make SMBios21Addr variable static
The variable is now only used inside biostables.c, there's no need to make it global. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/fw/biostables.c2
-rw-r--r--src/util.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/fw/biostables.c b/src/fw/biostables.c
index 10eaa36..47463be 100644
--- a/src/fw/biostables.c
+++ b/src/fw/biostables.c
@@ -296,7 +296,7 @@ smbios_21_next(struct smbios_21_entry_point *smbios, void *prev)
smbios->structure_table_length, prev);
}
-struct smbios_21_entry_point *SMBios21Addr;
+static struct smbios_21_entry_point *SMBios21Addr;
void
copy_smbios_21(void *pos)
diff --git a/src/util.h b/src/util.h
index 2e15175..aff8e88 100644
--- a/src/util.h
+++ b/src/util.h
@@ -87,7 +87,6 @@ void *find_acpi_table(u32 signature);
u32 find_resume_vector(void);
void acpi_reboot(void);
void find_acpi_features(void);
-extern struct smbios_21_entry_point *SMBios21Addr;
void *smbios_get_tables(u32 *length);
void copy_smbios_21(void *pos);
void display_uuid(void);