Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm Make "no options VMSWAP" kernels compile again.



details:   https://anonhg.NetBSD.org/src/rev/0364779ade96
branches:  trunk
changeset: 757599:0364779ade96
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Sep 07 04:45:22 2010 +0000

description:
Make "no options VMSWAP" kernels compile again.

diffstat:

 sys/uvm/uvm_pdaemon.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r e9af42396cb0 -r 0364779ade96 sys/uvm/uvm_pdaemon.h
--- a/sys/uvm/uvm_pdaemon.h     Tue Sep 07 02:11:04 2010 +0000
+++ b/sys/uvm/uvm_pdaemon.h     Tue Sep 07 04:45:22 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_pdaemon.h,v 1.15 2008/01/02 11:49:20 ad Exp $      */
+/*     $NetBSD: uvm_pdaemon.h,v 1.16 2010/09/07 04:45:22 pooka Exp $   */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -83,7 +83,11 @@
 bool uvm_reclaimable(void);
 
 kmutex_t *uvmpd_trylockowner(struct vm_page *);
+#ifdef VMSWAP
 bool uvmpd_trydropswap(struct vm_page *);
+#else
+#define uvmpd_trydropswap(_a_) (/*CONSTCOND*/false)
+#endif
 
 #endif /* _KERNEL */
 



Home | Main Index | Thread Index | Old Index