Module Name: src Committed By: maya Date: Sat Dec 24 15:42:05 UTC 2016
Modified Files: src/sys/uvm: uvm_physseg.h Log Message: 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 To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 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_physseg.h diff -u src/sys/uvm/uvm_physseg.h:1.4 src/sys/uvm/uvm_physseg.h:1.5 --- src/sys/uvm/uvm_physseg.h:1.4 Fri Dec 23 07:15:28 2016 +++ src/sys/uvm/uvm_physseg.h Sat Dec 24 15:42:05 2016 @@ -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_start(uvm_phy void uvm_physseg_set_avail_end(uvm_physseg_t, paddr_t); #endif /* PMAP_STEAL_MEMORY */ -#endif /* _UVM_UVM_PHYSSEG_H_ */ +#endif /* _KERNEL */ +#endif /* _UVM_UVM_PHYSSEG_H_ */