svn commit: r356131 - stable/11/sys/fs/tmpfs

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


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

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

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

Modified: stable/11/sys/fs/tmpfs/tmpfs.h
==============================================================================
--- stable/11/sys/fs/tmpfs/tmpfs.h	Fri Dec 27 17:41:41 2019	(r356130)
+++ stable/11/sys/fs/tmpfs/tmpfs.h	Fri Dec 27 17:55:56 2019	(r356131)
@@ -499,8 +499,6 @@ size_t tmpfs_mem_avail(void);
 
 size_t tmpfs_pages_used(struct tmpfs_mount *tmp);
 
-#endif
-
 /*
  * Macros/functions to convert from generic data structures to tmpfs
  * specific ones.
@@ -542,5 +540,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