diff options
author | Kirk McKusick <mckusick@FreeBSD.org> | 2011-06-16 23:40:10 +0000 |
---|---|---|
committer | Kirk McKusick <mckusick@FreeBSD.org> | 2011-06-16 23:40:10 +0000 |
commit | ff13f23f848d45f203a360b8cbb3f6275c1bd242 (patch) | |
tree | 5b6a6beeb214e52a52f55daa48f58b4361d826a5 /sys/ufs | |
parent | 160e5953c22faeea7678821bb7877c846ff2445c (diff) | |
download | src-ff13f23f848d45f203a360b8cbb3f6275c1bd242.tar.gz src-ff13f23f848d45f203a360b8cbb3f6275c1bd242.zip |
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
Notes
Notes:
svn path=/head/; revision=223169
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 fb1b1fb2bc67..1fd01444cdee 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 */ |