From b2ed023a037c625a44f2fc5669c6e85d0df4c160 Mon Sep 17 00:00:00 2001 From: mckusick Date: Tue, 11 Jul 2000 19:28:26 +0000 Subject: Clean up warning about undeclared function by declaring softdep_fsync in mount.h instead of ffs_extern.h. The correct solution is to use an indirect function pointer so that the kernel does not have to be built with options FFS, but that will be left for another day. --- sys/sys/mount.h | 2 ++ sys/ufs/ffs/ffs_extern.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/sys/sys/mount.h b/sys/sys/mount.h index 5f963c2..14cad4c 100644 --- a/sys/sys/mount.h +++ b/sys/sys/mount.h @@ -456,7 +456,9 @@ int vfs_stduninit __P((struct vfsconf *)); int vfs_stdextattrctl __P((struct mount *mp, int cmd, const char *attrname, caddr_t arg, struct proc *p)); +/* XXX - these should be indirect functions!!! */ int softdep_process_worklist __P((struct mount *)); +int softdep_fsync __P((struct vnode *)); #else /* !_KERNEL */ #include diff --git a/sys/ufs/ffs/ffs_extern.h b/sys/ufs/ffs/ffs_extern.h index 778376e..fe7391b 100644 --- a/sys/ufs/ffs/ffs_extern.h +++ b/sys/ufs/ffs/ffs_extern.h @@ -125,6 +125,9 @@ void softdep_setup_allocindir_page __P((struct inode *, ufs_lbn_t, struct buf *, int, ufs_daddr_t, ufs_daddr_t, struct buf *)); void softdep_fsync_mountdev __P((struct vnode *)); int softdep_sync_metadata __P((struct vop_fsync_args *)); +/* XXX incorrectly moved to mount.h - should be indirect function */ +#if 0 int softdep_fsync __P((struct vnode *vp)); +#endif #endif /* !_UFS_FFS_EXTERN_H */ -- cgit v1.1