aboutsummaryrefslogtreecommitdiff
path: root/sys/x86
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2012-03-22 12:23:32 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2012-03-22 12:23:32 +0000
commitd8c827012cff11d7ad82a27897fed5a5ba21f074 (patch)
treeb6316650d48beacc70946056d7c653b3d9be096b /sys/x86
parentbbbc13f8cf95df81a6dd88ca57a1126d4e0cadc9 (diff)
downloadsrc-d8c827012cff11d7ad82a27897fed5a5ba21f074.tar.gz
src-d8c827012cff11d7ad82a27897fed5a5ba21f074.zip
Mark the 'lapics' and 'ioapics' arrays here static since they are
private to this file. The 'lapics' array was actually shadowing a completely different 'lapics' array that is private to local_apic.c. Reported by: bde MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=233305
Diffstat (limited to 'sys/x86')
-rw-r--r--sys/x86/acpica/madt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/x86/acpica/madt.c b/sys/x86/acpica/madt.c
index f464f594a362..b67b481b1df6 100644
--- a/sys/x86/acpica/madt.c
+++ b/sys/x86/acpica/madt.c
@@ -53,12 +53,12 @@ __FBSDID("$FreeBSD$");
struct ioapic_info {
void *io_apic;
UINT32 io_vector;
-} ioapics[MAX_APIC_ID + 1];
+} static ioapics[MAX_APIC_ID + 1];
struct lapic_info {
u_int la_enabled:1;
u_int la_acpi_id:8;
-} lapics[MAX_APIC_ID + 1];
+} static lapics[MAX_APIC_ID + 1];
static int madt_found_sci_override;
static ACPI_TABLE_MADT *madt;