ansify function definitions

This commit is contained in:
cegger 2009-03-15 22:16:09 +00:00
parent 2f43aa5f3a
commit 164477c65a
6 changed files with 25 additions and 40 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.c,v 1.14 2009/03/14 14:45:51 dsl Exp $ */
/* $NetBSD: autoconf.c,v 1.15 2009/03/15 22:18:35 cegger Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.14 2009/03/14 14:45:51 dsl Exp $");
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.15 2009/03/15 22:18:35 cegger Exp $");
#include "opt_md.h"
@ -113,7 +113,7 @@ get_device(char *name)
/* Set the rootdev variable from the root specifier in the boot args */
static void
set_root_device()
set_root_device(void)
{
char *ptr;
@ -129,7 +129,7 @@ set_root_device()
* Set up the root device from the boot args
*/
void
cpu_rootconf()
cpu_rootconf(void)
{
#ifndef MEMORY_DISK_IS_ROOT
set_root_device();
@ -149,7 +149,7 @@ cpu_rootconf()
*/
void
cpu_configure()
cpu_configure(void)
{
/*
* Configure all the roots.

View File

@ -1,4 +1,4 @@
/* $NetBSD: podulebus.c,v 1.23 2009/03/14 21:04:01 dsl Exp $ */
/* $NetBSD: podulebus.c,v 1.24 2009/03/15 22:18:35 cegger Exp $ */
/*
* Copyright (c) 1994-1996 Mark Brinicombe.
@ -43,7 +43,7 @@
#include <sys/param.h>
__KERNEL_RCSID(0, "$NetBSD: podulebus.c,v 1.23 2009/03/14 21:04:01 dsl Exp $");
__KERNEL_RCSID(0, "$NetBSD: podulebus.c,v 1.24 2009/03/15 22:18:35 cegger Exp $");
#include <sys/systm.h>
#include <sys/kernel.h>
@ -535,12 +535,8 @@ matchpodule(struct podule_attach_args *pa, int manufacturer, int product, int re
}
void *
podulebus_irq_establish(ih, ipl, func, arg, ev)
podulebus_intr_handle_t ih;
int ipl;
int (*func)(void *);
void *arg;
struct evcnt *ev;
podulebus_irq_establish(podulebus_intr_handle_t ih,
int ipl, int (*func)(void *), void *arg, struct evcnt *ev)
{
/* XXX We don't actually use the evcnt supplied, just its name. */

View File

@ -1,4 +1,4 @@
/* $NetBSD: podulebus_io.c,v 1.5 2009/03/14 21:04:01 dsl Exp $ */
/* $NetBSD: podulebus_io.c,v 1.6 2009/03/15 22:18:35 cegger Exp $ */
/*
* Copyright (c) 1997 Mark Brinicombe.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: podulebus_io.c,v 1.5 2009/03/14 21:04:01 dsl Exp $");
__KERNEL_RCSID(0, "$NetBSD: podulebus_io.c,v 1.6 2009/03/15 22:18:35 cegger Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -142,14 +142,9 @@ podulebus_bs_map(void *t, bus_addr_t bpa, bus_size_t size, int cacheable, bus_sp
}
int
podulebus_bs_alloc(t, rstart, rend, size, alignment, boundary, cacheable,
bpap, bshp)
void *t;
bus_addr_t rstart, rend;
bus_size_t size, alignment, boundary;
int cacheable;
bus_addr_t *bpap;
bus_space_handle_t *bshp;
podulebus_bs_alloc(void *t, bus_addr_t rstart, bus_addr_t rend,
bus_size_t size, bus_size_t alignment, bus_size_t boundary,
int cacheable, bus_addr_t *bpap, bus_space_handle_t *bshp)
{
panic("podulebus_bs_alloc(): Help!");
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.73 2008/12/09 23:05:25 pooka Exp $ */
/* $NetBSD: pmap.h,v 1.74 2009/03/15 22:19:15 cegger Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001, 2007 The NetBSD Foundation, Inc.
@ -288,10 +288,7 @@ static __inline pt_entry_t *pmap_l3pte(pmap_t, vaddr_t, pt_entry_t *);
(&(pmap)->pm_lev1map[l1pte_index((vaddr_t)(v))])
static __inline pt_entry_t *
pmap_l2pte(pmap, v, l1pte)
pmap_t pmap;
vaddr_t v;
pt_entry_t *l1pte;
pmap_l2pte(pmap_t pmap, vaddr_t v, pt_entry_t *l1pte)
{
pt_entry_t *lev2map;
@ -306,10 +303,7 @@ pmap_l2pte(pmap, v, l1pte)
}
static __inline pt_entry_t *
pmap_l3pte(pmap, v, l2pte)
pmap_t pmap;
vaddr_t v;
pt_entry_t *l2pte;
pmap_l3pte(pmap_t pmap, vaddr_t v, pt_entry_t *l2pte)
{
pt_entry_t *l1pte, *lev2map, *lev3map;

View File

@ -1,4 +1,4 @@
/* $NetBSD: filecore_node.c,v 1.18 2009/03/14 15:36:21 dsl Exp $ */
/* $NetBSD: filecore_node.c,v 1.19 2009/03/15 22:16:50 cegger Exp $ */
/*-
* Copyright (c) 1982, 1986, 1989, 1994
@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: filecore_node.c,v 1.18 2009/03/14 15:36:21 dsl Exp $");
__KERNEL_RCSID(0, "$NetBSD: filecore_node.c,v 1.19 2009/03/15 22:16:50 cegger Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -104,7 +104,7 @@ extern int prtactive; /* 1 => print out reclaim of active vnodes */
* Initialize hash links for inodes and dnodes.
*/
void
filecore_init()
filecore_init(void)
{
malloc_type_attach(M_FILECOREMNT);
@ -120,7 +120,7 @@ filecore_init()
* Reinitialize inode hash table.
*/
void
filecore_reinit()
filecore_reinit(void)
{
struct filecore_node *ip;
struct ihashhead *oldhash, *hash;
@ -149,7 +149,7 @@ filecore_reinit()
* Destroy node pool and hash table.
*/
void
filecore_done()
filecore_done(void)
{
hashdone(filecorehashtbl, HASH_LIST, filecorehash);
pool_destroy(&filecore_node_pool);

View File

@ -1,4 +1,4 @@
/* $NetBSD: ip_flow.c,v 1.57 2009/02/01 17:04:11 pooka Exp $ */
/* $NetBSD: ip_flow.c,v 1.58 2009/03/15 22:16:09 cegger Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ip_flow.c,v 1.57 2009/02/01 17:04:11 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: ip_flow.c,v 1.58 2009/03/15 22:16:09 cegger Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -141,7 +141,7 @@ ipflow_lookup(const struct ip *ip)
}
void
ipflow_poolinit()
ipflow_poolinit(void)
{
pool_init(&ipflow_pool, sizeof(struct ipflow), 0, 0, 0, "ipflowpl",