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_ */
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"