summaryrefslogtreecommitdiffstats
path: root/sys/sys/mount.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-11-09 22:28:04 +0000
committerkib <kib@FreeBSD.org>2013-11-09 22:28:04 +0000
commit19c426193d10bacb7372e67c42818975691f2f5d (patch)
treeefc2a5a681353b6bad0b47d2a84caf1ffe7ca45d /sys/sys/mount.h
parent65aecc9afe80e46b9b685ae7864989efd2b29d9e (diff)
downloadFreeBSD-src-19c426193d10bacb7372e67c42818975691f2f5d.zip
FreeBSD-src-19c426193d10bacb7372e67c42818975691f2f5d.tar.gz
Hide MNT_SHARED_WRITES() and MNT_EXTENDED_SHARED() under the #ifdef
_KERNEL braces. Struct mount is only defined for the kernel build. Reported and tested by: andreast Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
Diffstat (limited to 'sys/sys/mount.h')
-rw-r--r--sys/sys/mount.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index 303556b..ca7e55c 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -362,6 +362,7 @@ void __mnt_vnode_markerfree_active(struct vnode **mvp, struct mount *);
#define MNTK_LOOKUP_SHARED 0x40000000 /* FS supports shared lock lookups */
#define MNTK_NOKNOTE 0x80000000 /* Don't send KNOTEs from VOP hooks */
+#ifdef _KERNEL
static inline int
MNT_SHARED_WRITES(struct mount *mp)
{
@@ -375,6 +376,7 @@ MNT_EXTENDED_SHARED(struct mount *mp)
return (mp != NULL && (mp->mnt_kern_flag & MNTK_EXTENDED_SHARED) != 0);
}
+#endif
/*
* Sysctl CTL_VFS definitions.
OpenPOWER on IntegriCloud