svn commit: r367281 - in head/sys: amd64/amd64 arm64/arm64 mips/mips powerpc/powerpc riscv/riscv
Alan Cox
alc at FreeBSD.org
Mon Nov 2 19:20:08 UTC 2020
Author: alc
Date: Mon Nov 2 19:20:06 2020
New Revision: 367281
URL: https://svnweb.freebsd.org/changeset/base/367281
Log:
Tidy up the #includes. Recent changes, such as the introduction of
VM_ALLOC_WAITOK and vm_page_unwire_noq(), have eliminated the need for
many of the #includes.
Reviewed by: kib, markj
Differential Revision: https://reviews.freebsd.org/D27052
Modified:
head/sys/amd64/amd64/uma_machdep.c
head/sys/arm64/arm64/uma_machdep.c
head/sys/mips/mips/uma_machdep.c
head/sys/powerpc/powerpc/uma_machdep.c
head/sys/riscv/riscv/uma_machdep.c
Modified: head/sys/amd64/amd64/uma_machdep.c
==============================================================================
--- head/sys/amd64/amd64/uma_machdep.c Mon Nov 2 18:48:06 2020 (r367280)
+++ head/sys/amd64/amd64/uma_machdep.c Mon Nov 2 19:20:06 2020 (r367281)
@@ -30,15 +30,10 @@
__FBSDID("$FreeBSD$");
#include <sys/param.h>
-#include <sys/lock.h>
#include <sys/malloc.h>
-#include <sys/mutex.h>
-#include <sys/systm.h>
-#include <sys/vmmeter.h>
#include <vm/vm.h>
#include <vm/vm_param.h>
#include <vm/vm_page.h>
-#include <vm/vm_pageout.h>
#include <vm/vm_dumpset.h>
#include <vm/uma.h>
#include <vm/uma_int.h>
Modified: head/sys/arm64/arm64/uma_machdep.c
==============================================================================
--- head/sys/arm64/arm64/uma_machdep.c Mon Nov 2 18:48:06 2020 (r367280)
+++ head/sys/arm64/arm64/uma_machdep.c Mon Nov 2 19:20:06 2020 (r367281)
@@ -28,11 +28,7 @@
__FBSDID("$FreeBSD$");
#include <sys/param.h>
-#include <sys/lock.h>
#include <sys/malloc.h>
-#include <sys/mutex.h>
-#include <sys/systm.h>
-#include <sys/vmmeter.h>
#include <vm/vm.h>
#include <vm/vm_param.h>
#include <vm/vm_page.h>
Modified: head/sys/mips/mips/uma_machdep.c
==============================================================================
--- head/sys/mips/mips/uma_machdep.c Mon Nov 2 18:48:06 2020 (r367280)
+++ head/sys/mips/mips/uma_machdep.c Mon Nov 2 19:20:06 2020 (r367281)
@@ -30,11 +30,7 @@
__FBSDID("$FreeBSD$");
#include <sys/param.h>
-#include <sys/lock.h>
#include <sys/malloc.h>
-#include <sys/mutex.h>
-#include <sys/systm.h>
-#include <sys/vmmeter.h>
#include <vm/vm.h>
#include <vm/vm_param.h>
#include <vm/vm_page.h>
@@ -42,7 +38,6 @@ __FBSDID("$FreeBSD$");
#include <vm/vm_dumpset.h>
#include <vm/uma.h>
#include <vm/uma_int.h>
-#include <machine/md_var.h>
void *
uma_small_alloc(uma_zone_t zone, vm_size_t bytes, int domain, u_int8_t *flags,
Modified: head/sys/powerpc/powerpc/uma_machdep.c
==============================================================================
--- head/sys/powerpc/powerpc/uma_machdep.c Mon Nov 2 18:48:06 2020 (r367280)
+++ head/sys/powerpc/powerpc/uma_machdep.c Mon Nov 2 19:20:06 2020 (r367281)
@@ -28,21 +28,14 @@
__FBSDID("$FreeBSD$");
#include <sys/param.h>
-#include <sys/kernel.h>
-#include <sys/lock.h>
-#include <sys/malloc.h>
-#include <sys/mutex.h>
#include <sys/systm.h>
+#include <sys/malloc.h>
#include <sys/sysctl.h>
-#include <sys/vmmeter.h>
#include <vm/vm.h>
#include <vm/vm_param.h>
+#include <vm/pmap.h>
#include <vm/vm_page.h>
-#include <vm/vm_kern.h>
-#include <vm/vm_pageout.h>
-#include <vm/vm_extern.h>
#include <vm/vm_dumpset.h>
-#include <vm/uma.h>
#include <vm/uma.h>
#include <vm/uma_int.h>
#include <machine/md_var.h>
Modified: head/sys/riscv/riscv/uma_machdep.c
==============================================================================
--- head/sys/riscv/riscv/uma_machdep.c Mon Nov 2 18:48:06 2020 (r367280)
+++ head/sys/riscv/riscv/uma_machdep.c Mon Nov 2 19:20:06 2020 (r367281)
@@ -28,19 +28,13 @@
__FBSDID("$FreeBSD$");
#include <sys/param.h>
-#include <sys/lock.h>
#include <sys/malloc.h>
-#include <sys/mutex.h>
-#include <sys/systm.h>
-#include <sys/vmmeter.h>
#include <vm/vm.h>
#include <vm/vm_param.h>
#include <vm/vm_page.h>
-#include <vm/vm_pageout.h>
#include <vm/vm_dumpset.h>
#include <vm/uma.h>
#include <vm/uma_int.h>
-#include <machine/md_var.h>
void *
uma_small_alloc(uma_zone_t zone, vm_size_t bytes, int domain, u_int8_t *flags,
More information about the svn-src-head
mailing list