Make unnecessary globals static and remove unused includes.

Pointed out by:	cscout
This commit is contained in:
Nate Lawson 2004-05-06 02:18:58 +00:00
parent 7e639165c2
commit 869ec176fc
9 changed files with 4 additions and 15 deletions

View File

@ -37,7 +37,7 @@ __FBSDID("$FreeBSD$");
#include "acpi.h"
u_long amd64_acpi_root;
static u_long amd64_acpi_root;
SYSCTL_ULONG(_machdep, OID_AUTO, acpi_root, CTLFLAG_RD, &amd64_acpi_root, 0,
"The physical address of the RSDP");

View File

@ -93,7 +93,7 @@ TASKQUEUE_DEFINE(acpi, taskqueue_acpi_enqueue, 0,
SWI_TQ, 0, &taskqueue_acpi_ih));
#ifdef ACPI_USE_THREADS
STAILQ_HEAD(, acpi_task_queue) acpi_task_queue;
static STAILQ_HEAD(, acpi_task_queue) acpi_task_queue;
static struct mtx acpi_task_mtx;
static void

View File

@ -32,7 +32,6 @@
#include <sys/bus.h>
#include <machine/bus.h>
#include <machine/resource.h>
#include <sys/rman.h>
#include <sys/ioccom.h>
#include <sys/malloc.h>

View File

@ -29,8 +29,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include "opt_bus.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bus.h>

View File

@ -38,9 +38,7 @@ __FBSDID("$FreeBSD$");
#include <dev/acpica/acpivar.h>
#include <dev/acpica/acpi_pcibvar.h>
#include <machine/pci_cfgreg.h>
#include <dev/pci/pcivar.h>
#include <dev/pci/pcib_private.h>
#include "pcib_if.h"
/* Hooks for the ACPI CA debugging infrastructure. */

View File

@ -34,7 +34,6 @@ __FBSDID("$FreeBSD$");
#include <sys/kthread.h>
#include <sys/bus.h>
#include <sys/proc.h>
#include <sys/reboot.h>
#include <sys/sysctl.h>
#include <sys/unistd.h>
#include <sys/power.h>

View File

@ -37,9 +37,7 @@ __FBSDID("$FreeBSD$");
#include "acpi.h"
#include <machine/pc/bios.h>
u_long i386_acpi_root;
static u_long i386_acpi_root;
SYSCTL_ULONG(_machdep, OID_AUTO, acpi_root, CTLFLAG_RD, &i386_acpi_root, 0,
"The physical address of the RSDP");

View File

@ -37,13 +37,10 @@ __FBSDID("$FreeBSD$");
#include <sys/sysctl.h>
#include <vm/vm.h>
#include <vm/vm_param.h>
#include <vm/pmap.h>
#include <vm/vm_object.h>
#include <vm/vm_page.h>
#include <vm/vm_map.h>
#include <vm/vm_kern.h>
#include <vm/vm_extern.h>
#include <machine/bus.h>
#include <machine/cpufunc.h>

View File

@ -39,7 +39,7 @@
extern u_int64_t ia64_efi_acpi_table;
extern u_int64_t ia64_efi_acpi20_table;
u_long ia64_acpi_root;
static u_long ia64_acpi_root;
SYSCTL_ULONG(_machdep, OID_AUTO, acpi_root, CTLFLAG_RD, &ia64_acpi_root, 0,
"The physical address of the RSDP");