Module Name:    src
Committed By:   maxv
Date:           Sun Oct 28 14:12:16 UTC 2018

Modified Files:
        src/sys/arch/amd64/include: vmparam.h

Log Message:
Add #ifdef _KERNEL, vaddr_t does not exist in userland, and we don't want
externs anyway.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/arch/amd64/include/vmparam.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/arch/amd64/include/vmparam.h
diff -u src/sys/arch/amd64/include/vmparam.h:1.47 src/sys/arch/amd64/include/vmparam.h:1.48
--- src/sys/arch/amd64/include/vmparam.h:1.47	Sun Aug 12 10:50:35 2018
+++ src/sys/arch/amd64/include/vmparam.h	Sun Oct 28 14:12:16 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: vmparam.h,v 1.47 2018/08/12 10:50:35 maxv Exp $	*/
+/*	$NetBSD: vmparam.h,v 1.48 2018/10/28 14:12:16 maxv Exp $	*/
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -133,10 +133,12 @@
 #define VM_MAX_KERNEL_ADDRESS_DEFAULT	0xffffc00000000000
 #endif
 
+#ifdef _KERNEL
 extern vaddr_t vm_min_kernel_address;
 extern vaddr_t vm_max_kernel_address;
 #define VM_MIN_KERNEL_ADDRESS	vm_min_kernel_address
 #define VM_MAX_KERNEL_ADDRESS	vm_max_kernel_address
+#endif
 
 /*
  * The address to which unspecified mapping requests default

Reply via email to