diff options
author | Ed Maste <emaste@FreeBSD.org> | 2019-08-21 19:07:13 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2019-08-21 19:07:13 +0000 |
commit | 476b0ab758b96103c246aefd2fee215e9544caa1 (patch) | |
tree | 3f8b4589264e3d92d1af6a9b2516c54ef078a7cc /sys/fs/msdosfs/denode.h | |
parent | 8b90607f20e9be5b2fa352310ef115f1658f56fd (diff) |
makefs: share denode.h between kernel msdosfs and makefs
There is no need to duplicate this file when it can be trivially
shared (just exposing sections previously under #ifdef _KERNEL).
MFC with: r351273
Differential Revision: The FreeBSD Foundation
Notes
Notes:
svn path=/head/; revision=351346
Diffstat (limited to 'sys/fs/msdosfs/denode.h')
-rw-r--r-- | sys/fs/msdosfs/denode.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/fs/msdosfs/denode.h b/sys/fs/msdosfs/denode.h index 2aaa1a374bd7..b198a6a39d81 100644 --- a/sys/fs/msdosfs/denode.h +++ b/sys/fs/msdosfs/denode.h @@ -213,7 +213,7 @@ struct denode { ((dep)->de_Attributes & ATTR_DIRECTORY) ? 0 : (dep)->de_FileSize), \ putushort((dp)->deHighClust, (dep)->de_StartCluster >> 16)) -#ifdef _KERNEL +#if defined(_KERNEL) || defined(MAKEFS) #define VTODE(vp) ((struct denode *)(vp)->v_data) #define DETOV(de) ((de)->de_vnode) @@ -262,9 +262,11 @@ struct defid { extern struct vop_vector msdosfs_vnodeops; +#ifdef _KERNEL int msdosfs_lookup(struct vop_cachedlookup_args *); int msdosfs_inactive(struct vop_inactive_args *); int msdosfs_reclaim(struct vop_reclaim_args *); +#endif /* * Internal service routine prototypes. @@ -283,5 +285,5 @@ int deupdat(struct denode *dep, int waitfor); int removede(struct denode *pdep, struct denode *dep); int detrunc(struct denode *dep, u_long length, int flags, struct ucred *cred); int doscheckpath( struct denode *source, struct denode *target); -#endif /* _KERNEL */ +#endif /* _KERNEL || MAKEFS */ #endif /* !_FS_MSDOSFS_DENODE_H_ */ |