From: Ben Kaduk Date: Thu, 28 Mar 2013 21:10:29 +0000 (-0400) Subject: FreeBSD: VOP_MMAP has been dead since 1996 X-Git-Tag: upstream/1.8.0_pre1^2~1173 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=a63e6747abd33fef40da16312dfc22d052bffd00;p=packages%2Fo%2Fopenafs.git FreeBSD: VOP_MMAP has been dead since 1996 Clang complains that our (K&R!) declaration of struct vop_mmap_args will only be visible within the (empty) function. With the kernel's CFLAGS, though, this is fatal. Remove the dead code. Change-Id: I8fd768b36b73f9e2f727dae4e748931f307444c8 Reviewed-on: http://gerrit.openafs.org/9856 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/afs/FBSD/osi_vnodeops.c b/src/afs/FBSD/osi_vnodeops.c index 124f711fa..554334fef 100644 --- a/src/afs/FBSD/osi_vnodeops.c +++ b/src/afs/FBSD/osi_vnodeops.c @@ -1076,24 +1076,6 @@ afs_vop_poll(ap) return (1); } -/* - * Mmap a file - * - * NB Currently unsupported. - */ -/* ARGSUSED */ -int -afs_vop_mmap(ap) - struct vop_mmap_args /* { - * struct vnode *a_vp; - * int a_fflags; - * struct ucred *a_cred; - * struct thread *td; - * } */ *ap; -{ - return (EINVAL); -} - int afs_vop_fsync(ap) struct vop_fsync_args /* {