Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm uvm_extern.h is has both a _KERNEL only, and a non _...
details: https://anonhg.NetBSD.org/src/rev/8d6f9bf4e9b8
branches: trunk
changeset: 349820:8d6f9bf4e9b8
user: cherry <cherry%NetBSD.org@localhost>
date: Sat Dec 24 19:21:29 2016 +0000
description:
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.
diffstat:
sys/uvm/uvm_extern.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r a1ff9dba17c1 -r 8d6f9bf4e9b8 sys/uvm/uvm_extern.h
--- a/sys/uvm/uvm_extern.h Sat Dec 24 19:02:16 2016 +0000
+++ b/sys/uvm/uvm_extern.h Sat Dec 24 19:21:29 2016 +0000
@@ -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 @@
#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 @@
* After this, MD code will have to explicitly include it if needed.
*/
#include <uvm/uvm_physseg.h>
+#endif
/*
* helpers for calling ubc_release()
Home |
Main Index |
Thread Index |
Old Index