summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>2000-07-11 19:28:26 +0000
committermckusick <mckusick@FreeBSD.org>2000-07-11 19:28:26 +0000
commitb2ed023a037c625a44f2fc5669c6e85d0df4c160 (patch)
treecb82267c73b023ec33b78cb319975d8e93017770
parente07f67dda2fbeb6e3f85ab6998185af42b897135 (diff)
downloadFreeBSD-src-b2ed023a037c625a44f2fc5669c6e85d0df4c160.zip
FreeBSD-src-b2ed023a037c625a44f2fc5669c6e85d0df4c160.tar.gz
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.
-rw-r--r--sys/sys/mount.h2
-rw-r--r--sys/ufs/ffs/ffs_extern.h3
2 files changed, 5 insertions, 0 deletions
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 <sys/cdefs.h>
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 */
OpenPOWER on IntegriCloud