summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2000-05-27 18:31:36 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2000-05-27 18:31:36 +0000
commit25d93e6eef3f8d87cc125d62d6b3804351391681 (patch)
tree0e257571c613efe7c0cbdb43e2ff1b972bc461fe
parentea25ad922bb56c6aa49dcb179ff011ba8505e822 (diff)
Make this compile for VM_PSTRAT_RANDOM.
-rw-r--r--sys/vm/vm_page.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index 4b2137d668a..6f38260b6e1 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_page.c,v 1.17 1999/09/03 18:02:28 art Exp $ */
+/* $OpenBSD: vm_page.c,v 1.18 2000/05/27 18:31:35 art Exp $ */
/* $NetBSD: vm_page.c,v 1.41 1998/02/08 18:24:52 thorpej Exp $ */
#define VM_PAGE_ALLOC_MEMORY_STATS
@@ -528,7 +528,10 @@ vm_page_physload(start, end, avail_start, avail_end)
{
struct vm_page *pgs;
struct vm_physseg *ps;
- int preload, lcv, npages, x;
+ int preload, lcv, npages;
+#if (VM_PHYSSEG_STRAT != VM_PSTRAT_RANDOM)
+ int x;
+#endif
if (page_shift == 0)
panic("vm_page_physload: page size not set!");