diff options
author | mckusick <mckusick@FreeBSD.org> | 2011-06-16 23:40:10 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2011-06-16 23:40:10 +0000 |
commit | d97a856c1b00506155b0903bddbe6e5f4e1aa40c (patch) | |
tree | 5b6a6beeb214e52a52f55daa48f58b4361d826a5 /sys/ufs | |
parent | 7c77d46862292246da557642ef825ee64441c4d7 (diff) | |
download | FreeBSD-src-d97a856c1b00506155b0903bddbe6e5f4e1aa40c.zip FreeBSD-src-d97a856c1b00506155b0903bddbe6e5f4e1aa40c.tar.gz |
Drop the include of <ufs/ffs/ffs_extern.h> from usr.sbin/makefs/ffs/ffs_bswap.c
and usr.sbin/makefs/ffs/ffs_subr.c as they have no need of anything in that
file. No other programs or libraries include <ufs/ffs/ffs_extern.h> (nor
should they as it is totally in-kernel interfaces). For added protection
I enclosed the entire contents of <ufs/ffs/ffs_extern.h> in ifdef _KERNEL.
Feedback from: Bruce Evans and Tai-hwa Liang
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_extern.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_extern.h b/sys/ufs/ffs/ffs_extern.h index fb1b1fb..1fd0144 100644 --- a/sys/ufs/ffs/ffs_extern.h +++ b/sys/ufs/ffs/ffs_extern.h @@ -33,7 +33,10 @@ #ifndef _UFS_FFS_EXTERN_H #define _UFS_FFS_EXTERN_H -enum vtype; +#ifndef _KERNEL +#error "No user-serving parts inside" +#else + struct buf; struct cg; struct fid; @@ -168,7 +171,6 @@ void softdep_freework(struct workhead *); int ffs_rdonly(struct inode *); -#ifdef _KERNEL TAILQ_HEAD(snaphead, inode); struct snapdata { @@ -178,6 +180,7 @@ struct snapdata { daddr_t *sn_blklist; struct lock sn_lock; }; + #endif /* _KERNEL */ #endif /* !_UFS_FFS_EXTERN_H */ |