Module Name: src
Committed By: cherry
Date: Mon Jan 2 20:08:33 UTC 2017
Modified Files:
src/sys/uvm: uvm.h uvm_physseg.h
Log Message:
Move sys/uvm/uvm_physseg.h inclusion to within _KERNEL only.
To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/sys/uvm/uvm.h
cvs rdiff -u -r1.7 -r1.8 src/sys/uvm/uvm_physseg.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/uvm/uvm.h
diff -u src/sys/uvm/uvm.h:1.67 src/sys/uvm/uvm.h:1.68
--- src/sys/uvm/uvm.h:1.67 Thu Dec 22 13:26:24 2016
+++ src/sys/uvm/uvm.h Mon Jan 2 20:08:32 2017
@@ -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>
/*
Index: src/sys/uvm/uvm_physseg.h
diff -u src/sys/uvm/uvm_physseg.h:1.7 src/sys/uvm/uvm_physseg.h:1.8
--- src/sys/uvm/uvm_physseg.h:1.7 Thu Dec 29 12:58:38 2016
+++ src/sys/uvm/uvm_physseg.h Mon Jan 2 20:08:32 2017
@@ -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_start(uvm_phy
void uvm_physseg_set_avail_end(uvm_physseg_t, paddr_t);
#endif /* UVM_PHYSSEG_LEGACY */
-#endif /* _KERNEL */
-
#endif /* _UVM_UVM_PHYSSEG_H_ */