From: natano Date: Wed, 10 Aug 2016 11:33:01 +0000 (+0000) Subject: fix previous; ffs_vinit() requires #ifdef _KERNEL to not break the X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=df679eaac380e458f97225a61ff315f392dd0d2c;p=openbsd fix previous; ffs_vinit() requires #ifdef _KERNEL to not break the sbin/fsck_ffs build. bad natano! reported by naddy --- diff --git a/sys/ufs/ffs/ffs_subr.c b/sys/ufs/ffs/ffs_subr.c index d2455d45ef7..2aedef06acf 100644 --- a/sys/ufs/ffs/ffs_subr.c +++ b/sys/ufs/ffs/ffs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_subr.c,v 1.31 2016/08/10 08:04:57 natano Exp $ */ +/* $OpenBSD: ffs_subr.c,v 1.32 2016/08/10 11:33:01 natano Exp $ */ /* $NetBSD: ffs_subr.c,v 1.6 1996/03/17 02:16:23 christos Exp $ */ /* @@ -245,6 +245,7 @@ ffs_isfreeblock(struct fs *fs, u_char *cp, daddr_t h) } } +#ifdef _KERNEL /* * Initialize the vnode associated with a new inode, handle aliased * vnodes. @@ -309,3 +310,4 @@ ffs_vinit(struct mount *mntp, struct vnode **vpp) *vpp = vp; return (0); } +#endif /* _KERNEL */