Date: Fri, 27 Dec 2019 17:41:41 +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-12@freebsd.org Subject: svn commit: r356130 - stable/12/sys/fs/tmpfs Message-ID: <201912271741.xBRHffKb039624@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912271741.xBRHffKb039624>