summaryrefslogtreecommitdiffstats
path: root/sys/msdosfs/denode.h
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2010-07-17 19:27:07 +0000
committerguenther <guenther@openbsd.org>2010-07-17 19:27:07 +0000
commitb86e97fbe2086003bbd828193a604a25fca13abc (patch)
tree4731c3d2714e2833851b0fe1933382378115b9d0 /sys/msdosfs/denode.h
parentWrap kernel function declarations in #ifdef _KERNEL to eliminate warnings (diff)
downloadwireguard-openbsd-b86e97fbe2086003bbd828193a604a25fca13abc.tar.xz
wireguard-openbsd-b86e97fbe2086003bbd828193a604a25fca13abc.zip
Move some macros in <msdosfs/denode.h> to outside the #ifdef _KERNEL
so that libkvm doesn't need to define that, thereby avoiding some warnings. ok miod@
Diffstat (limited to 'sys/msdosfs/denode.h')
-rw-r--r--sys/msdosfs/denode.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/msdosfs/denode.h b/sys/msdosfs/denode.h
index 66aaeb91f90..fde57a08ff2 100644
--- a/sys/msdosfs/denode.h
+++ b/sys/msdosfs/denode.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: denode.h,v 1.22 2010/05/16 20:26:39 nicm Exp $ */
+/* $OpenBSD: denode.h,v 1.23 2010/07/17 19:27:07 guenther Exp $ */
/* $NetBSD: denode.h,v 1.24 1997/10/17 11:23:39 ws Exp $ */
/*-
@@ -222,8 +222,6 @@ struct denode {
#define de_forw de_chain[0]
#define de_back de_chain[1]
-#ifdef _KERNEL
-
#define VTODE(vp) ((struct denode *)(vp)->v_data)
#define DETOV(de) ((de)->de_vnode)
@@ -257,6 +255,8 @@ struct defid {
#endif
};
+
+#ifdef _KERNEL
/*
* Prototypes for MSDOSFS vnode operations
*/