Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Move sys/uvm/uvm_physseg.h inclusion to within _KERN...



details:   https://anonhg.NetBSD.org/src/rev/d03444da019f
branches:  trunk
changeset: 820182:d03444da019f
user:      cherry <cherry%NetBSD.org@localhost>
date:      Mon Jan 02 20:08:32 2017 +0000

description:
Move sys/uvm/uvm_physseg.h inclusion to within _KERNEL only.

diffstat:

 sys/uvm/uvm.h         |  4 ++--
 sys/uvm/uvm_physseg.h |  5 +----
 2 files changed, 3 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r bdd1c52763a1 -r d03444da019f sys/uvm/uvm.h
--- a/sys/uvm/uvm.h     Mon Jan 02 19:54:12 2017 +0000
+++ b/sys/uvm/uvm.h     Mon Jan 02 20:08:32 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm.h,v 1.67 2016/12/22 13:26:24 cherry Exp $  */
+/*     $NetBSD: uvm.h,v 1.68 2017/01/02 20:08:32 cherry Exp $  */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -57,12 +57,12 @@
 #include <uvm/uvm_object.h>
 #include <uvm/uvm_page.h>
 #include <uvm/uvm_pager.h>
-#include <uvm/uvm_physseg.h>
 #include <uvm/uvm_pdaemon.h>
 #include <uvm/uvm_swap.h>
 
 #ifdef _KERNEL
 
+#include <uvm/uvm_physseg.h>
 #include <sys/rndsource.h>
 
 /*
diff -r bdd1c52763a1 -r d03444da019f sys/uvm/uvm_physseg.h
--- a/sys/uvm/uvm_physseg.h     Mon Jan 02 19:54:12 2017 +0000
+++ b/sys/uvm/uvm_physseg.h     Mon Jan 02 20:08:32 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_physseg.h,v 1.7 2016/12/29 12:58:38 rin Exp $ */
+/* $NetBSD: uvm_physseg.h,v 1.8 2017/01/02 20:08:32 cherry Exp $ */
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -45,7 +45,6 @@
 #include <sys/param.h>
 #include <sys/types.h>
 
-#ifdef _KERNEL
 /*
  * No APIs are explicitly #included in uvm_physseg.c
  */
@@ -144,6 +143,4 @@
 void uvm_physseg_set_avail_end(uvm_physseg_t, paddr_t);
 #endif /* UVM_PHYSSEG_LEGACY */
 
-#endif /* _KERNEL */
-
 #endif /* _UVM_UVM_PHYSSEG_H_ */



Home | Main Index | Thread Index | Old Index