Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm as a stopgap fix make all of uvm_physseg.h kernel-on...



details:   https://anonhg.NetBSD.org/src/rev/45802b1e6659
branches:  trunk
changeset: 819949:45802b1e6659
user:      maya <maya%NetBSD.org@localhost>
date:      Sat Dec 24 15:42:05 2016 +0000

description:
as a stopgap fix make all of uvm_physseg.h kernel-only. this file uses
paddr_t which isn't available to userland, breaking builds that use uvm
headers, like devel/libuv on pkgsrc.

pointed out by Carsten Kunze on pkgsrc-users.

ok riastradh

diffstat:

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

diffs (25 lines):

diff -r d599b4d063a5 -r 45802b1e6659 sys/uvm/uvm_physseg.h
--- a/sys/uvm/uvm_physseg.h     Sat Dec 24 15:23:06 2016 +0000
+++ b/sys/uvm/uvm_physseg.h     Sat Dec 24 15:42:05 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_physseg.h,v 1.4 2016/12/23 07:15:28 cherry Exp $ */
+/* $NetBSD: uvm_physseg.h,v 1.5 2016/12/24 15:42:05 maya Exp $ */
 
 /*
  * Consolidated API from uvm_page.c and others.
@@ -16,6 +16,7 @@
 #include <sys/param.h>
 #include <sys/types.h>
 
+#ifdef _KERNEL
 /*
  * No APIs are explicitly #included in uvm_physseg.c
  */
@@ -114,5 +115,6 @@
 void uvm_physseg_set_avail_end(uvm_physseg_t, paddr_t);
 #endif /* PMAP_STEAL_MEMORY */
 
+#endif /* _KERNEL */
+
 #endif /* _UVM_UVM_PHYSSEG_H_ */
-



Home | Main Index | Thread Index | Old Index