Module Name:    src
Committed By:   christos
Date:           Sat Jan 23 16:02:09 UTC 2016

Modified Files:
        src/sys/sys: vnode.h wapbl.h

Log Message:
protect more kernel stuff.


To generate a diff of this commit:
cvs rdiff -u -r1.257 -r1.258 src/sys/sys/vnode.h
cvs rdiff -u -r1.16 -r1.17 src/sys/sys/wapbl.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/sys/vnode.h
diff -u src/sys/sys/vnode.h:1.257 src/sys/sys/vnode.h:1.258
--- src/sys/sys/vnode.h:1.257	Fri Jan 22 17:43:25 2016
+++ src/sys/sys/vnode.h	Sat Jan 23 11:02:09 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: vnode.h,v 1.257 2016/01/22 22:43:25 dholland Exp $	*/
+/*	$NetBSD: vnode.h,v 1.258 2016/01/23 16:02:09 christos Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -68,6 +68,7 @@
 #include <sys/time.h>
 
 /* XXX: clean up includes later */
+#if defined(_KERNEL) || defined(_KMEMUSER)
 #include <uvm/uvm_param.h>	/* XXX */
 #include <uvm/uvm_pglist.h>	/* XXX */
 #include <uvm/uvm_object.h>	/* XXX */
@@ -75,6 +76,7 @@
 
 struct namecache;
 struct uvm_ractx;
+#endif
 
 /*
  * The vnode is the focus of all file activity in UNIX.  There is a
@@ -112,6 +114,7 @@ enum vtagtype	{
     "VT_TMPFS", "VT_UDF", "VT_SYSVBFS", "VT_PUFFS", "VT_HFS", "VT_EFS", \
     "VT_ZFS", "VT_RUMP", "VT_NILFS", "VT_V7FS", "VT_CHFS"
 
+#if defined(_KERNEL) || defined(_KMEMUSER)
 struct vnode;
 struct buf;
 
@@ -180,6 +183,7 @@ struct vnode {
 
 typedef struct vnodelst vnodelst_t;
 typedef struct vnode vnode_t;
+#endif
 
 /*
  * Vnode flags.  The first set are locked by vnode lock or are stable.

Index: src/sys/sys/wapbl.h
diff -u src/sys/sys/wapbl.h:1.16 src/sys/sys/wapbl.h:1.17
--- src/sys/sys/wapbl.h:1.16	Fri Sep  5 01:42:50 2014
+++ src/sys/sys/wapbl.h	Sat Jan 23 11:02:09 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: wapbl.h,v 1.16 2014/09/05 05:42:50 matt Exp $	*/
+/*	$NetBSD: wapbl.h,v 1.17 2016/01/23 16:02:09 christos Exp $	*/
 
 /*-
  * Copyright (c) 2003,2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,9 @@
 
 #include <sys/mutex.h>
 
+#if defined(_KERNEL) || defined(_KMEMUSER)
 #include <miscfs/specfs/specdev.h>
+#endif
 
 /* This header file describes the api and data structures for
  * write ahead physical block logging (WAPBL) support.

Reply via email to