svn commit: r356130 - stable/12/sys/fs/tmpfs

Doug Moore dougm at FreeBSD.org
Fri Dec 27 17:41:41 UTC 2019


Author: dougm
Date: Fri Dec 27 17:41:41 2019
New Revision: 356130
URL: https://svnweb.freebsd.org/changeset/base/356130

Log:
  MFC r355913
  Allow #include<sys/tmpfs.h> to compile when _KERNEL is not #defined.

Modified:
  stable/12/sys/fs/tmpfs/tmpfs.h
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/fs/tmpfs/tmpfs.h
==============================================================================
--- stable/12/sys/fs/tmpfs/tmpfs.h	Fri Dec 27 17:38:25 2019	(r356129)
+++ stable/12/sys/fs/tmpfs/tmpfs.h	Fri Dec 27 17:41:41 2019	(r356130)
@@ -491,8 +491,6 @@ size_t tmpfs_pages_used(struct tmpfs_mount *tmp);
 void tmpfs_subr_init(void);
 void tmpfs_subr_uninit(void);
 
-#endif
-
 /*
  * Macros/functions to convert from generic data structures to tmpfs
  * specific ones.
@@ -534,5 +532,6 @@ tmpfs_use_nc(struct vnode *vp)
 
 	return (!(VFS_TO_TMPFS(vp->v_mount)->tm_nonc));
 }
+#endif /* _KERNEL */
 
 #endif /* _FS_TMPFS_TMPFS_H_ */


More information about the svn-src-stable mailing list