diff options
author | wollman <wollman@FreeBSD.org> | 1994-08-18 22:36:09 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-08-18 22:36:09 +0000 |
commit | f9fc827448679cf1d41e56512c34521bf06ce37a (patch) | |
tree | 6b83fdf6eb5926c2f3d175a83d24bf5a2611a012 /sys/vm/vm_object.c | |
parent | 44fc281f480837836035856eb0af25443f0d2146 (diff) | |
download | FreeBSD-src-f9fc827448679cf1d41e56512c34521bf06ce37a.zip FreeBSD-src-f9fc827448679cf1d41e56512c34521bf06ce37a.tar.gz |
Fix up some sloppy coding practices:
- Delete redundant declarations.
- Add -Wredundant-declarations to Makefile.i386 so they don't come back.
- Delete sloppy COMMON-style declarations of uninitialized data in
header files.
- Add a few prototypes.
- Clean up warnings resulting from the above.
NB: ioconf.c will still generate a redundant-declaration warning, which
is unavoidable unless somebody volunteers to make `config' smarter.
Diffstat (limited to 'sys/vm/vm_object.c')
-rw-r--r-- | sys/vm/vm_object.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 57b66ec..3bdb0a2 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_object.c,v 1.3 1994/08/02 07:55:29 davidg Exp $ + * $Id: vm_object.c,v 1.4 1994/08/07 13:10:40 davidg Exp $ */ /* @@ -70,6 +70,8 @@ #include <sys/param.h> #include <sys/systm.h> +#include <sys/kernel.h> +#include <sys/proc.h> /* for curproc, pageproc */ #include <sys/malloc.h> #include <vm/vm.h> @@ -77,9 +79,6 @@ #include <vm/vm_pageout.h> static void _vm_object_allocate(vm_size_t, vm_object_t); -void vm_object_deactivate_pages(vm_object_t); -void vm_object_cache_trim(void); -void vm_object_remove(vm_pager_t); /* * Virtual memory objects maintain the actual data |