summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-05-06 02:18:58 +0000
committernjl <njl@FreeBSD.org>2004-05-06 02:18:58 +0000
commit3d06d54b9db97b123021d64a12114bae36b0ba34 (patch)
treea600eb345bb061c03cc29102801fb73fbdbb7d5c /sys/dev/acpica
parentacc9e8e0229b8dac81acaa5690d2402389aab9f4 (diff)
downloadFreeBSD-src-3d06d54b9db97b123021d64a12114bae36b0ba34.zip
FreeBSD-src-3d06d54b9db97b123021d64a12114bae36b0ba34.tar.gz
Make unnecessary globals static and remove unused includes.
Pointed out by: cscout
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r--sys/dev/acpica/Osd/OsdSchedule.c2
-rw-r--r--sys/dev/acpica/acpi_acad.c1
-rw-r--r--sys/dev/acpica/acpi_pci.c2
-rw-r--r--sys/dev/acpica/acpi_pcib.c2
-rw-r--r--sys/dev/acpica/acpi_thermal.c1
5 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/acpica/Osd/OsdSchedule.c b/sys/dev/acpica/Osd/OsdSchedule.c
index 0c8c1a7..5c034e8 100644
--- a/sys/dev/acpica/Osd/OsdSchedule.c
+++ b/sys/dev/acpica/Osd/OsdSchedule.c
@@ -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
diff --git a/sys/dev/acpica/acpi_acad.c b/sys/dev/acpica/acpi_acad.c
index 20a1fe5..af22286 100644
--- a/sys/dev/acpica/acpi_acad.c
+++ b/sys/dev/acpica/acpi_acad.c
@@ -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>
diff --git a/sys/dev/acpica/acpi_pci.c b/sys/dev/acpica/acpi_pci.c
index 969577f..c6e95fd 100644
--- a/sys/dev/acpica/acpi_pci.c
+++ b/sys/dev/acpica/acpi_pci.c
@@ -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>
diff --git a/sys/dev/acpica/acpi_pcib.c b/sys/dev/acpica/acpi_pcib.c
index 3ba945c..ee6bd6f 100644
--- a/sys/dev/acpica/acpi_pcib.c
+++ b/sys/dev/acpica/acpi_pcib.c
@@ -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. */
diff --git a/sys/dev/acpica/acpi_thermal.c b/sys/dev/acpica/acpi_thermal.c
index 27f46de..ef97200 100644
--- a/sys/dev/acpica/acpi_thermal.c
+++ b/sys/dev/acpica/acpi_thermal.c
@@ -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>
OpenPOWER on IntegriCloud