From e803ad6c09aa9268a4b0333ffec2dc07a37d0e85 Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 25 May 1997 04:50:02 +0000 Subject: Fix some warnings (missing prototypes, wrong "generic" args etc) umapfs uses one of nullfs's functions... --- sys/fs/nullfs/null.h | 4 +++- sys/fs/nullfs/null_vnops.c | 5 ++--- sys/fs/umapfs/umap_vnops.c | 11 ++++++----- 3 files changed, 11 insertions(+), 9 deletions(-) (limited to 'sys/fs') diff --git a/sys/fs/nullfs/null.h b/sys/fs/nullfs/null.h index 8e886f7..0b438fe 100644 --- a/sys/fs/nullfs/null.h +++ b/sys/fs/nullfs/null.h @@ -35,7 +35,7 @@ * * @(#)null.h 8.3 (Berkeley) 8/20/94 * - * $Id$ + * $Id: null.h,v 1.6 1997/02/22 09:40:20 peter Exp $ */ struct null_args { @@ -70,6 +70,8 @@ extern struct vnode *null_checkvp __P((struct vnode *vp, char *fil, int lno)); #define NULLVPTOLOWERVP(vp) (VTONULL(vp)->null_lowervp) #endif +extern int null_bypass __P((struct vop_generic_args *ap)); + extern vop_t **null_vnodeop_p; extern struct vfsops null_vfsops; #endif /* KERNEL */ diff --git a/sys/fs/nullfs/null_vnops.c b/sys/fs/nullfs/null_vnops.c index f145aa3..a2e891d 100644 --- a/sys/fs/nullfs/null_vnops.c +++ b/sys/fs/nullfs/null_vnops.c @@ -37,11 +37,11 @@ * * Ancestors: * @(#)lofs_vnops.c 1.2 (Berkeley) 6/18/92 - * $Id: null_vnops.c,v 1.16 1997/02/22 09:40:22 peter Exp $ + * $Id: null_vnops.c,v 1.17 1997/04/17 11:17:30 kato Exp $ * ...and... * @(#)null_vnodeops.c 1.20 92/07/07 UCLA Ficus project * - * $Id: null_vnops.c,v 1.16 1997/02/22 09:40:22 peter Exp $ + * $Id: null_vnops.c,v 1.17 1997/04/17 11:17:30 kato Exp $ */ /* @@ -193,7 +193,6 @@ SYSCTL_INT(_debug, OID_AUTO, nullfs_bug_bypass, CTLFLAG_RW, &null_bug_bypass, 0, ""); static int null_access __P((struct vop_access_args *ap)); -int null_bypass __P((struct vop_generic_args *ap)); static int null_bwrite __P((struct vop_bwrite_args *ap)); static int null_getattr __P((struct vop_getattr_args *ap)); static int null_inactive __P((struct vop_inactive_args *ap)); diff --git a/sys/fs/umapfs/umap_vnops.c b/sys/fs/umapfs/umap_vnops.c index c90e308..5266853 100644 --- a/sys/fs/umapfs/umap_vnops.c +++ b/sys/fs/umapfs/umap_vnops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)umap_vnops.c 8.6 (Berkeley) 5/22/95 - * $Id$ + * $Id: umap_vnops.c,v 1.16 1997/02/22 09:40:38 peter Exp $ */ /* @@ -53,6 +53,7 @@ #include #include #include +#include static int umap_bug_bypass = 0; /* for debugging: enables bypass printf'ing */ SYSCTL_INT(_debug, OID_AUTO, umapfs_bug_bypass, CTLFLAG_RW, @@ -279,7 +280,7 @@ umap_getattr(ap) struct vnode **vp1p; struct vnodeop_desc *descp = ap->a_desc; - error = umap_bypass(ap); + error = umap_bypass((struct vop_generic_args *)ap); if (error) return (error); /* Requires that arguments be restored. */ @@ -356,7 +357,7 @@ umap_lock(ap) if ((ap->a_flags & LK_TYPE_MASK) == LK_DRAIN) return (0); ap->a_flags &= ~LK_INTERLOCK; - return (null_bypass(ap)); + return (null_bypass((struct vop_generic_args *)ap)); } /* @@ -376,7 +377,7 @@ umap_unlock(ap) vop_nounlock(ap); ap->a_flags &= ~LK_INTERLOCK; - return (null_bypass(ap)); + return (null_bypass((struct vop_generic_args *)ap)); } static int @@ -509,7 +510,7 @@ umap_rename(ap) printf("umap_rename: rename component credit user now %ld, group %ld\n", compcredp->cr_uid, compcredp->cr_gid); - error = umap_bypass(ap); + error = umap_bypass((struct vop_generic_args *)ap); /* Restore the additional mapped componentname cred structure. */ -- cgit v1.1