Make unnecessary globals static and remove unused includes.
Pointed out by: cscout
This commit is contained in:
parent
7e639165c2
commit
869ec176fc
@ -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");
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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. */
|
||||
|
@ -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>
|
||||
|
@ -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");
|
||||
|
@ -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>
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user