Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Dec 2019 17:55:57 +0000 (UTC)
From:      Doug Moore <dougm@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r356131 - stable/11/sys/fs/tmpfs
Message-ID:  <201912271755.xBRHtvLW046971@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912271755.xBRHtvLW046971>