Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm PR/50744: NONAKA Kimihiro: Protect more stuff with _...
details: https://anonhg.NetBSD.org/src/rev/1e02c577e4a0
branches: trunk
changeset: 343457:1e02c577e4a0
user: christos <christos%NetBSD.org@localhost>
date: Fri Feb 05 04:18:55 2016 +0000
description:
PR/50744: NONAKA Kimihiro: Protect more stuff with _KERNEL && _KMEMUSER to
make uvm_extern.h compile standalone again for net-snmp.
diffstat:
sys/uvm/uvm_extern.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (36 lines):
diff -r 55f7fe3edc8a -r 1e02c577e4a0 sys/uvm/uvm_extern.h
--- a/sys/uvm/uvm_extern.h Fri Feb 05 03:41:05 2016 +0000
+++ b/sys/uvm/uvm_extern.h Fri Feb 05 04:18:55 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_extern.h,v 1.195 2015/11/26 13:15:34 martin Exp $ */
+/* $NetBSD: uvm_extern.h,v 1.196 2016/02/05 04:18:55 christos Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -469,8 +469,10 @@
#include <uvm/uvm_param.h>
#include <uvm/uvm_prot.h>
#include <uvm/uvm_pmap.h>
+#if defined(_KERNEL) || defined(_KMEMUSER)
#include <uvm/uvm_map.h>
#include <uvm/uvm_pager.h>
+#endif
/*
* helpers for calling ubc_release()
@@ -482,6 +484,7 @@
#endif
#define UBC_UNMAP_FLAG(vp) (UBC_WANT_UNMAP(vp) ? UBC_UNMAP : 0)
+#if defined(_KERNEL) || defined(_KMEMUSER)
/*
* Shareable process virtual address space.
* May eventually be merged with vm_map.
@@ -507,6 +510,7 @@
size_t vm_aslr_delta_mmap; /* mmap() random delta for ASLR */
};
#define VMSPACE_IS_KERNEL_P(vm) VM_MAP_IS_KERNEL(&(vm)->vm_map)
+#endif
#ifdef _KERNEL
Home |
Main Index |
Thread Index |
Old Index