diff options
author | mpp <mpp@FreeBSD.org> | 1997-02-12 06:52:51 +0000 |
---|---|---|
committer | mpp <mpp@FreeBSD.org> | 1997-02-12 06:52:51 +0000 |
commit | 50f9d7b97882a3487ff9307ad84b5e6a30da89bc (patch) | |
tree | 053528cf5deae54e35e0a5c1525741c4bb25048b /sys/miscfs | |
parent | d05d971648c10cc26a47b24e1c078d627b793374 (diff) | |
download | FreeBSD-src-50f9d7b97882a3487ff9307ad84b5e6a30da89bc.zip FreeBSD-src-50f9d7b97882a3487ff9307ad84b5e6a30da89bc.tar.gz |
Add function prototypes for most of the new Lite2 functions.
Also made a few of the miscfs routines static to be
consistent. Some modules simply required some additional
#includes to remove -Wall warnings.
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/kernfs/kernfs_vfsops.c | 3 | ||||
-rw-r--r-- | sys/miscfs/portal/portal_vfsops.c | 1 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs_ctl.c | 3 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs_vnops.c | 6 | ||||
-rw-r--r-- | sys/miscfs/union/union_subr.c | 3 |
5 files changed, 12 insertions, 4 deletions
diff --git a/sys/miscfs/kernfs/kernfs_vfsops.c b/sys/miscfs/kernfs/kernfs_vfsops.c index b774487..7af6e65 100644 --- a/sys/miscfs/kernfs/kernfs_vfsops.c +++ b/sys/miscfs/kernfs/kernfs_vfsops.c @@ -58,6 +58,7 @@ dev_t rrootdev = NODEV; static int cdevvp __P((dev_t dev, struct vnode **vpp)); +static void kernfs_get_rrootdev __P((void)); static int kernfs_init __P((struct vfsconf *vfsp)); static int kernfs_mount __P((struct mount *mp, char *path, caddr_t data, struct nameidata *ndp, struct proc *p)); @@ -76,7 +77,7 @@ kernfs_init(vfsp) return (0); } -void +static void kernfs_get_rrootdev() { static int tried = 0; diff --git a/sys/miscfs/portal/portal_vfsops.c b/sys/miscfs/portal/portal_vfsops.c index 74e1542..3557e0b 100644 --- a/sys/miscfs/portal/portal_vfsops.c +++ b/sys/miscfs/portal/portal_vfsops.c @@ -62,6 +62,7 @@ #include <sys/un.h> #include <miscfs/portal/portal.h> +static int portal_init __P((struct vfsconf *)); static int portal_mount __P((struct mount *mp, char *path, caddr_t data, struct nameidata *ndp, struct proc *p)); static int portal_start __P((struct mount *mp, int flags, struct proc *p)); diff --git a/sys/miscfs/procfs/procfs_ctl.c b/sys/miscfs/procfs/procfs_ctl.c index 68b93dd..30dd929 100644 --- a/sys/miscfs/procfs/procfs_ctl.c +++ b/sys/miscfs/procfs/procfs_ctl.c @@ -55,6 +55,9 @@ #include <sys/ptrace.h> #include <miscfs/procfs/procfs.h> +#include <vm/vm.h> +#include <vm/vm_extern.h> + #ifndef FIX_SSTEP #define FIX_SSTEP(p) #endif diff --git a/sys/miscfs/procfs/procfs_vnops.c b/sys/miscfs/procfs/procfs_vnops.c index 85be3ea..34dc165 100644 --- a/sys/miscfs/procfs/procfs_vnops.c +++ b/sys/miscfs/procfs/procfs_vnops.c @@ -62,6 +62,7 @@ static int procfs_abortop __P((struct vop_abortop_args *)); static int procfs_access __P((struct vop_access_args *)); static int procfs_badop __P((void)); +static int procfs_bmap __P((struct vop_bmap_args *)); static int procfs_close __P((struct vop_close_args *)); static int procfs_getattr __P((struct vop_getattr_args *)); static int procfs_inactive __P((struct vop_inactive_args *)); @@ -71,6 +72,7 @@ static int procfs_open __P((struct vop_open_args *)); static int procfs_pathconf __P((struct vop_pathconf_args *ap)); static int procfs_print __P((struct vop_print_args *)); static int procfs_readdir __P((struct vop_readdir_args *)); +static int procfs_readlink __P((struct vop_readlink_args *)); static int procfs_reclaim __P((struct vop_reclaim_args *)); static int procfs_setattr __P((struct vop_setattr_args *)); @@ -208,7 +210,7 @@ procfs_ioctl(ap) * usual no-op bmap, although returning * (EIO) would be a reasonable alternative. */ -int +static int procfs_bmap(ap) struct vop_bmap_args /* { struct vnode *a_vp; @@ -894,7 +896,7 @@ procfs_readdir(ap) /* * readlink reads the link of `curproc' */ -int +static int procfs_readlink(ap) struct vop_readlink_args *ap; { diff --git a/sys/miscfs/union/union_subr.c b/sys/miscfs/union/union_subr.c index 63e25e6..837d025 100644 --- a/sys/miscfs/union/union_subr.c +++ b/sys/miscfs/union/union_subr.c @@ -50,7 +50,8 @@ #include <sys/queue.h> #include <sys/mount.h> #include <sys/stat.h> -#include <vm/vm.h> /* for vnode_pager_setsize */ +#include <vm/vm.h> +#include <vm/vm_extern.h> /* for vnode_pager_setsize */ #include <miscfs/union/union.h> #include <sys/proc.h> |