Module Name: src Committed By: cherry Date: Sat Dec 24 19:21:29 UTC 2016
Modified Files: src/sys/uvm: uvm_extern.h Log Message: uvm_extern.h is has both a _KERNEL only, and a non _KERNEL only API. Since we unconditionally expose the uvm_physseg.h API via uvm_extern.h right now, and since uvm_physseg.h uses a kernel only datatype, viz psize_t, we restrict exposure of uvm_physseg.h API exposure to kernel only. This is in conformance of its documentation via uvm_hotplug(9) as a kernel internal API. To generate a diff of this commit: cvs rdiff -u -r1.200 -r1.201 src/sys/uvm/uvm_extern.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_extern.h diff -u src/sys/uvm/uvm_extern.h:1.200 src/sys/uvm/uvm_extern.h:1.201 --- src/sys/uvm/uvm_extern.h:1.200 Thu Dec 22 13:26:24 2016 +++ src/sys/uvm/uvm_extern.h Sat Dec 24 19:21:29 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_extern.h,v 1.200 2016/12/22 13:26:24 cherry Exp $ */ +/* $NetBSD: uvm_extern.h,v 1.201 2016/12/24 19:21:29 cherry Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -472,7 +472,6 @@ extern bool vm_page_zero_enable; #if defined(_KERNEL) || defined(_KMEMUSER) #include <uvm/uvm_map.h> #include <uvm/uvm_pager.h> -#endif /* * Include the uvm_hotplug(9) API unconditionally until @@ -481,6 +480,7 @@ extern bool vm_page_zero_enable; * After this, MD code will have to explicitly include it if needed. */ #include <uvm/uvm_physseg.h> +#endif /* * helpers for calling ubc_release()