From: Sascha Wildner Date: Wed, 18 Feb 2015 14:46:58 +0000 (+0100) Subject: sys/kern: Adjust some function declaration vs. definition mismatches. X-Git-Tag: v4.2.0rc~795 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/59b728a7d19d91e26e18c2e77fe1db5f9886393f sys/kern: Adjust some function declaration vs. definition mismatches. All these functions are declared static already, so no functional change. --- diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 6bcbfe4a31..17be7f4a6a 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -985,7 +985,7 @@ exec_free_args(struct image_args *args) * [ps_strings] top of user stack * */ -register_t * +static register_t * exec_copyout_strings(struct image_params *imgp) { int argc, envc, sgap; diff --git a/sys/kern/kern_memio.c b/sys/kern/kern_memio.c index 903d1f4e54..f3a3f74774 100644 --- a/sys/kern/kern_memio.c +++ b/sys/kern/kern_memio.c @@ -634,7 +634,7 @@ static struct filterops mm_read_filtops = static struct filterops mm_write_filtops = { FILTEROP_ISFD|FILTEROP_MPSAFE, NULL, dummy_filter_detach, mm_filter_write }; -int +static int mmkqfilter(struct dev_kqfilter_args *ap) { struct knote *kn = ap->a_kn; diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index 19d3e680a9..3d6f2c3d97 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -527,7 +527,7 @@ ioprio_set_callback(struct proc *p, void *data) return(0); } -int +static int doionice(struct proc *chgp, int n) { struct ucred *cr = curthread->td_ucred; diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index 5b91d6a8e2..9edd097343 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -1178,7 +1178,7 @@ sysctl_find_oid(int *name, u_int namelen, struct sysctl_oid **noid, * to, and return the resulting error code. */ -int +static int sysctl_root(SYSCTL_HANDLER_ARGS) { struct thread *td = req->td; diff --git a/sys/kern/link_elf.c b/sys/kern/link_elf.c index 785f2c1674..fe321ece31 100644 --- a/sys/kern/link_elf.c +++ b/sys/kern/link_elf.c @@ -789,7 +789,7 @@ elf_hash(const char *name) return h; } -int +static int link_elf_lookup_symbol(linker_file_t lf, const char* name, c_linker_sym_t* sym) { elf_file_t ef = lf->priv; diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index 37abb62e0d..d69b604377 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -1207,7 +1207,7 @@ diskpsize(struct dev_psize_args *ap) return(0); } -int +static int diskdump(struct dev_dump_args *ap) { cdev_t dev = ap->a_head.a_dev; diff --git a/sys/kern/subr_diskiocom.c b/sys/kern/subr_diskiocom.c index f8fc59bc96..78eb3a20d0 100644 --- a/sys/kern/subr_diskiocom.c +++ b/sys/kern/subr_diskiocom.c @@ -172,7 +172,7 @@ disk_iocom_reconnect(struct disk *dp, struct file *fp) return (0); } -int +static int disk_rcvdmsg(kdmsg_msg_t *msg) { struct disk *dp = msg->state->iocom->handle; diff --git a/sys/kern/subr_taskqueue.c b/sys/kern/subr_taskqueue.c index da85aef53c..0a0d4b8ddd 100644 --- a/sys/kern/subr_taskqueue.c +++ b/sys/kern/subr_taskqueue.c @@ -308,7 +308,7 @@ taskqueue_unblock(struct taskqueue *queue) TQ_UNLOCK(queue); } -void +static void taskqueue_run(struct taskqueue *queue, int lock_held) { struct task *task; diff --git a/sys/kern/sys_mqueue.c b/sys/kern/sys_mqueue.c index 88c075d8d3..94ca7cb873 100644 --- a/sys/kern/sys_mqueue.c +++ b/sys/kern/sys_mqueue.c @@ -221,7 +221,7 @@ mqueue_linear_insert(struct mqueue *mq, struct mq_msg *msg) /* * Validate input. */ -int +static int itimespecfix(struct timespec *ts) { if (ts->tv_sec < 0 || ts->tv_nsec < 0 || ts->tv_nsec >= 1000000000) @@ -234,7 +234,7 @@ itimespecfix(struct timespec *ts) /* * Compute number of ticks in the specified amount of time. */ -int +static int tstohz(const struct timespec *ts) { struct timeval tv; diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index 2ea4fa6e7a..c0c0a0f579 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -951,7 +951,7 @@ pipe_write(struct file *fp, struct uio *uio, struct ucred *cred, int fflags) /* * we implement a very minimal set of ioctls for compatibility with sockets. */ -int +static int pipe_ioctl(struct file *fp, u_long cmd, caddr_t data, struct ucred *cred, struct sysmsg *msg) { diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c index 65710bc967..8bca301b18 100644 --- a/sys/kern/vfs_cluster.c +++ b/sys/kern/vfs_cluster.c @@ -1013,7 +1013,7 @@ cluster_rbuild(struct vnode *vp, off_t filesize, off_t loffset, off_t doffset, * * The returned bio is &bp->b_bio1 */ -void +static void cluster_callback(struct bio *bio) { struct buf *bp = bio->bio_buf; diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 6a726dc895..eca46be44b 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -1836,7 +1836,7 @@ error_nond: * determine whether it is legal to chdir to the vnode. The vnode's state * is not changed by this call. */ -int +static int checkvp_chdir(struct vnode *vp, struct thread *td) { int error;