From owner-svn-src-head@FreeBSD.ORG Thu Mar 22 12:23:33 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 014BC1065670; Thu, 22 Mar 2012 12:23:33 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E0A7F8FC15; Thu, 22 Mar 2012 12:23:32 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q2MCNWqJ024125; Thu, 22 Mar 2012 12:23:32 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q2MCNW6j024123; Thu, 22 Mar 2012 12:23:32 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <201203221223.q2MCNW6j024123@svn.freebsd.org> From: John Baldwin Date: Thu, 22 Mar 2012 12:23:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r233305 - head/sys/x86/acpica X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Mar 2012 12:23:33 -0000 Author: jhb Date: Thu Mar 22 12:23:32 2012 New Revision: 233305 URL: http://svn.freebsd.org/changeset/base/233305 Log: 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 Modified: head/sys/x86/acpica/madt.c Modified: head/sys/x86/acpica/madt.c ============================================================================== --- head/sys/x86/acpica/madt.c Thu Mar 22 11:47:06 2012 (r233304) +++ head/sys/x86/acpica/madt.c Thu Mar 22 12:23:32 2012 (r233305) @@ -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;