Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Change old-style function defintions to C89 prototypes.



details:   https://anonhg.NetBSD.org/src/rev/3ea273edf64e
branches:  trunk
changeset: 773672:3ea273edf64e
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Feb 12 16:34:06 2012 +0000

description:
Change old-style function defintions to C89 prototypes.

Approved by releng.

diffstat:

 sys/arch/acorn26/acorn26/pmap.c               |    6 +-
 sys/arch/amiga/amiga/amiga_bus_simple_1word.c |   21 +-
 sys/arch/amiga/amiga/amiga_init.c             |   16 +-
 sys/arch/amiga/amiga/autoconf.c               |   12 +-
 sys/arch/amiga/amiga/simple_busfuncs.c        |  254 ++++----
 sys/arch/amiga/dev/grf_cv3dreg.h              |   24 +-
 sys/arch/amiga/dev/grf_cvreg.h                |   24 +-
 sys/arch/amiga/dev/p5bus.c                    |    4 +-
 sys/arch/arm/footbridge/footbridge_com_io.c   |   22 +-
 sys/arch/arm/footbridge/footbridge_io.c       |   36 +-
 sys/arch/arm/footbridge/footbridge_pci.c      |   15 +-
 sys/arch/arm/footbridge/isa/isa_io.c          |   22 +-
 sys/arch/arm/footbridge/isa/isadma_machdep.c  |   28 +-
 sys/arch/arm/marvell/mvsoc.c                  |    8 +-
 sys/arch/arm/marvell/mvsoctmr.c               |    6 +-
 sys/arch/arm/marvell/orion.c                  |    6 +-
 sys/arch/atari/dev/atari5380.c                |    6 +-
 sys/arch/atari/dev/grfabs.c                   |   20 +-
 sys/arch/atari/dev/ym2149.c                   |    6 +-
 sys/arch/cesfic/cesfic/machdep.c              |   11 +-
 sys/arch/cobalt/cobalt/bus.c                  |  133 ++--
 sys/arch/emips/emips/bus_space.c              |   61 +-
 sys/arch/emips/emips/sysconf.c                |   11 +-
 sys/arch/emips/emips/xs_bee3.c                |    6 +-
 sys/arch/emips/include/bus.h                  |  111 +-
 sys/arch/evbarm/ifpga/ifpga_io.c              |   25 +-
 sys/arch/evbarm/tsarm/epcom_ts.c              |   19 +-
 sys/arch/evbarm/tsarm/isa/isa_io.c            |   22 +-
 sys/arch/evbmips/rmixl/autoconf.c             |   10 +-
 sys/arch/evbmips/rmixl/machdep.c              |    8 +-
 sys/arch/hpcmips/tx/tx39power.c               |    6 +-
 sys/arch/hpcmips/vr/vrc4172pwm.c              |    6 +-
 sys/arch/hpcsh/dev/hd64465/hd64465.c          |    8 +-
 sys/arch/hpcsh/dev/hd64465/hd64465uart.c      |    8 +-
 sys/arch/hpcsh/dev/pfckbd.c                   |    6 +-
 sys/arch/hpcsh/dev/psh3lcd.c                  |    6 +-
 sys/arch/luna68k/include/bus.h                |   13 +-
 sys/arch/mac68k/mac68k/macrom.c               |    6 +-
 sys/arch/mac68k/nubus/if_sm_nubus.c           |   14 +-
 sys/arch/mips/adm5120/dev/admpci.c            |    8 +-
 sys/arch/mips/atheros/dev/if_ath_arbus.c      |    6 +-
 sys/arch/mipsco/include/bus.h                 |  105 +-
 sys/arch/mipsco/mipsco/bus_dma.c              |   25 +-
 sys/arch/mipsco/mipsco/mips_3x30.c            |    9 +-
 sys/arch/mvme68k/include/bus_space.h          |   13 +-
 sys/arch/newsmips/include/bus.h               |   85 +-
 sys/arch/next68k/include/bus_space.h          |   13 +-
 sys/arch/sgimips/sgimips/bus.c                |  179 ++--
 sys/arch/sh3/sh3/cache_sh3.c                  |    8 +-
 sys/arch/sh3/sh3/mmu_sh3.c                    |    8 +-
 sys/arch/sh3/sh3/mmu_sh4.c                    |   10 +-
 sys/arch/sh3/sh3/sh3_machdep.c                |    6 +-
 sys/arch/sparc/fpu/fpu.c                      |   13 +-
 sys/arch/sparc/sparc/machdep.c                |  804 +++++++++++++------------
 sys/arch/sparc64/sparc64/db_trace.c           |   12 +-
 sys/arch/sparc64/sparc64/ipifuncs.c           |    6 +-
 sys/arch/sparc64/sparc64/netbsd32_machdep.c   |   20 +-
 sys/compat/linux/common/linux_exec_elf32.c    |   20 +-
 sys/compat/sunos32/sunos32_misc.c             |   12 +-
 sys/conf/Makefile.kern.inc                    |    3 +-
 sys/dev/hpc/video_subr.c                      |   14 +-
 sys/dev/ic/bt463.c                            |   59 +-
 sys/dev/ic/bt485.c                            |   24 +-
 sys/dev/ic/ds.h                               |    9 +-
 sys/dev/ic/ibm561.c                           |   26 +-
 sys/dev/ic/smc91cxx.c                         |   16 +-
 sys/dev/isa/toaster.c                         |   39 +-
 sys/dev/mvme/mvmebus.c                        |   27 +-
 sys/dev/mvme/pcctwo.c                         |   15 +-
 sys/dev/vme/xd.c                              |  100 +--
 sys/dev/vme/xy.c                              |  129 +---
 71 files changed, 1384 insertions(+), 1465 deletions(-)

diffs (truncated from 5970 to 300 lines):

diff -r da4cfa0dbd1e -r 3ea273edf64e sys/arch/acorn26/acorn26/pmap.c
--- a/sys/arch/acorn26/acorn26/pmap.c   Sun Feb 12 16:31:01 2012 +0000
+++ b/sys/arch/acorn26/acorn26/pmap.c   Sun Feb 12 16:34:06 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.34 2012/01/30 17:03:58 he Exp $ */
+/* $NetBSD: pmap.c,v 1.35 2012/02/12 16:34:06 matt Exp $ */
 /*-
  * Copyright (c) 1997, 1998, 2000 Ben Harris
  * All rights reserved.
@@ -102,7 +102,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.34 2012/01/30 17:03:58 he Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.35 2012/02/12 16:34:06 matt Exp $");
 
 #include <sys/kernel.h> /* for cold */
 #include <sys/kmem.h>
@@ -336,7 +336,7 @@
  * for allocating user pmaps, and frees some unnecessary memory.
  */
 void
-pmap_init2()
+pmap_init2(void)
 {
        struct pmap *pmap;
        struct pv_entry *new_pv_table, *old_pv_table;
diff -r da4cfa0dbd1e -r 3ea273edf64e sys/arch/amiga/amiga/amiga_bus_simple_1word.c
--- a/sys/arch/amiga/amiga/amiga_bus_simple_1word.c     Sun Feb 12 16:31:01 2012 +0000
+++ b/sys/arch/amiga/amiga/amiga_bus_simple_1word.c     Sun Feb 12 16:34:06 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: amiga_bus_simple_1word.c,v 1.6 2011/09/16 10:23:01 rkujawa Exp $ */
+/* $NetBSD: amiga_bus_simple_1word.c,v 1.7 2012/02/12 16:34:06 matt Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 #include <machine/pte.h>
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: amiga_bus_simple_1word.c,v 1.6 2011/09/16 10:23:01 rkujawa Exp $");
+__KERNEL_RCSID(1, "$NetBSD: amiga_bus_simple_1word.c,v 1.7 2012/02/12 16:34:06 matt Exp $");
 
 #define AMIGA_SIMPLE_BUS_STRIDE 1              /* 1 byte per byte */
 #define AMIGA_SIMPLE_BUS_WORD_METHODS
@@ -55,12 +55,8 @@
 
 /* ARGSUSED */
 int
-oabs(bsm_absolute_)(tag, address, size, flags, handlep)
-       bus_space_tag_t tag;
-       bus_addr_t address;
-       bus_size_t size;
-       int flags;
-       bus_space_handle_t *handlep;
+oabs(bsm_absolute_)(bus_space_tag_t tag, bus_addr_t address,
+       bus_size_t size, int flags, bus_space_handle_t *handlep)
 {
        uint32_t pa = kvtop((void*) tag->base);
        *handlep = tag->base + (address - pa) * AMIGA_SIMPLE_BUS_STRIDE;
@@ -69,9 +65,7 @@
 
 /* ARGSUSED */
 u_int32_t
-oabs(bsr4_swap_)(handle, offset)
-       bus_space_handle_t handle;
-       bus_size_t offset;
+oabs(bsr4_swap_)(bus_space_handle_t handle, bus_size_t offset)
 {
        volatile u_int32_t *p;
        u_int32_t x;
@@ -84,10 +78,7 @@
 
 /* ARGSUSED */
 void
-oabs(bsw4_swap_)(handle, offset, value)
-       bus_space_handle_t handle;
-       bus_size_t offset;
-       unsigned value;
+oabs(bsw4_swap_)(bus_space_handle_t handle, bus_size_t offset, unsigned value)
 {
        volatile u_int32_t *p;
 
diff -r da4cfa0dbd1e -r 3ea273edf64e sys/arch/amiga/amiga/amiga_init.c
--- a/sys/arch/amiga/amiga/amiga_init.c Sun Feb 12 16:31:01 2012 +0000
+++ b/sys/arch/amiga/amiga/amiga_init.c Sun Feb 12 16:34:06 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amiga_init.c,v 1.125 2012/01/10 20:29:49 rkujawa Exp $ */
+/*     $NetBSD: amiga_init.c,v 1.126 2012/02/12 16:34:06 matt Exp $    */
 
 /*
  * Copyright (c) 1994 Michael L. Hitch
@@ -38,7 +38,7 @@
 #include "ser.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amiga_init.c,v 1.125 2012/01/10 20:29:49 rkujawa Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amiga_init.c,v 1.126 2012/02/12 16:34:06 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -193,15 +193,9 @@
 
 __attribute__ ((no_instrument_function))
 void
-start_c(id, fphystart, fphysize, cphysize, esym_addr, flags, inh_sync,
-       boot_part, loadbase)
-       int id;
-       u_int fphystart, fphysize, cphysize;
-       char *esym_addr;
-       u_int flags;
-       u_long inh_sync;
-       u_long boot_part;
-       u_int loadbase;
+start_c(int id, u_int fphystart, u_int fphysize, u_int cphysize,
+       char *esym_addr, u_int flags, u_long inh_sync, u_long boot_part,
+       u_int loadbase)
 {
        extern char end[];
        extern u_int protorp[2];
diff -r da4cfa0dbd1e -r 3ea273edf64e sys/arch/amiga/amiga/autoconf.c
--- a/sys/arch/amiga/amiga/autoconf.c   Sun Feb 12 16:31:01 2012 +0000
+++ b/sys/arch/amiga/amiga/autoconf.c   Sun Feb 12 16:34:06 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.109 2012/01/24 00:20:45 rkujawa Exp $   */
+/*     $NetBSD: autoconf.c,v 1.110 2012/02/12 16:34:06 matt Exp $      */
 
 /*
  * Copyright (c) 1994 Christian E. Hopps
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.109 2012/01/24 00:20:45 rkujawa Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.110 2012/02/12 16:34:06 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -500,7 +500,7 @@
 #endif
 
 int
-is_a3000()
+is_a3000(void)
 {
        /* this is a dirty kludge.. but how do you do this RIGHT ? :-) */
        extern long boot_fphystart;
@@ -545,7 +545,7 @@
 }
 
 int
-is_a4000()
+is_a4000(void)
 {
        if ((machineid >> 16) == 4000)
                return (1);             /* It's an A4000 */
@@ -568,7 +568,7 @@
 }
 
 int
-is_a1200()
+is_a1200(void)
 {
        if ((machineid >> 16) == 1200)
                return (1);             /* It's an A1200 */
@@ -576,7 +576,7 @@
 }
 
 int
-is_a600()
+is_a600(void)
 {
        if ((machineid >> 16) == 600)
                return (1);             /* It's an A600 */
diff -r da4cfa0dbd1e -r 3ea273edf64e sys/arch/amiga/amiga/simple_busfuncs.c
--- a/sys/arch/amiga/amiga/simple_busfuncs.c    Sun Feb 12 16:31:01 2012 +0000
+++ b/sys/arch/amiga/amiga/simple_busfuncs.c    Sun Feb 12 16:34:06 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: simple_busfuncs.c,v 1.10 2011/09/14 09:19:09 rkujawa Exp $ */
+/* $NetBSD: simple_busfuncs.c,v 1.11 2012/02/12 16:34:06 matt Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: simple_busfuncs.c,v 1.10 2011/09/14 09:19:09 rkujawa Exp $");
+__KERNEL_RCSID(0, "$NetBSD: simple_busfuncs.c,v 1.11 2012/02/12 16:34:06 matt Exp $");
 
 /*
  * Do NOT use this standalone.
@@ -73,12 +73,12 @@
 /* function definitions */
 /* ARGSUSED */
 int
-oabs(bsm_)(tag, address, size, flags, handlep)
-       bus_space_tag_t tag;
-       bus_addr_t address;
-       bus_size_t size;
-       int flags;
-       bus_space_handle_t *handlep;
+oabs(bsm_)(
+       bus_space_tag_t tag,
+       bus_addr_t address,
+       bus_size_t size,
+       int flags,
+       bus_space_handle_t *handlep)
 {
        *handlep = tag->base + address * AMIGA_SIMPLE_BUS_STRIDE;
        return 0;
@@ -86,11 +86,11 @@
 
 /* ARGSUSED */
 int
-oabs(bsms_)(handle, offset, size, nhandlep)
-       bus_space_handle_t handle;
-       bus_size_t offset;
-       bus_size_t size;
-       bus_space_handle_t *nhandlep;
+oabs(bsms_)(
+       bus_space_handle_t handle,
+       bus_size_t offset,
+       bus_size_t size,
+       bus_space_handle_t *nhandlep)
 {
        *nhandlep = handle + offset * AMIGA_SIMPLE_BUS_STRIDE;
        return 0;
@@ -98,17 +98,17 @@
 
 /* ARGSUSED */
 void
-oabs(bsu_)(handle, size)
-       bus_space_handle_t handle;
-       bus_size_t size;
+oabs(bsu_)(
+       bus_space_handle_t handle,
+       bus_size_t size)
 {
        return;
 }
 
 u_int8_t
-oabs(bsr1_) (handle, offset)
-       bus_space_handle_t handle;
-       bus_size_t offset;
+oabs(bsr1_)(
+       bus_space_handle_t handle,
+       bus_size_t offset)
 {
        u_int8_t *p;
        u_int8_t x;
@@ -120,10 +120,10 @@
 }
 
 void
-oabs(bsw1_)(handle, offset, value)
-       bus_space_handle_t handle;
-       bus_size_t offset;
-       unsigned value;
+oabs(bsw1_)(
+       bus_space_handle_t handle,
+       bus_size_t offset,
+       unsigned value)
 {
        u_int8_t *p;
 
@@ -133,11 +133,11 @@
 }
 
 void
-oabs(bsrm1_)(handle, offset, pointer, count)
-       bus_space_handle_t handle;
-       bus_size_t offset;
-       u_int8_t *pointer;
-       bus_size_t count;
+oabs(bsrm1_)(
+       bus_space_handle_t handle,
+       bus_size_t offset,
+       u_int8_t *pointer,
+       bus_size_t count)
 {
        volatile u_int8_t *p;
 
@@ -151,11 +151,11 @@
 }
 
 void
-oabs(bswm1_)(handle, offset, pointer, count)
-       bus_space_handle_t handle;
-       bus_size_t offset;
-       const u_int8_t *pointer;
-       bus_size_t count;
+oabs(bswm1_)(
+       bus_space_handle_t handle,
+       bus_size_t offset,
+       const u_int8_t *pointer,
+       bus_size_t count)
 {
        volatile u_int8_t *p;



Home | Main Index | Thread Index | Old Index