Sync no-argument function declaration and definition by adding (void). I hope this doesn't conflict with any network patches.
I skipped these: dev/microcode/ utility programs, not even KNF lib/libz/ foreign code, K&R-compatible Index: ddb/db_dwarf.c =================================================================== RCS file: /cvs/src/sys/ddb/db_dwarf.c,v retrieving revision 1.3 diff -u -p -r1.3 db_dwarf.c --- ddb/db_dwarf.c 25 Jan 2016 14:30:30 -0000 1.3 +++ ddb/db_dwarf.c 7 Mar 2016 12:54:04 -0000 @@ -414,7 +414,7 @@ next: #endif /* !ELFDATA */ static void -usage() +usage(void) { extern const char *__progname; errx(1, "usage: %s [-s] [-e filename] [addr addr ...]", __progname); Index: dev/pci/mpii.c =================================================================== RCS file: /cvs/src/sys/dev/pci/mpii.c,v retrieving revision 1.101 diff -u -p -r1.101 mpii.c --- dev/pci/mpii.c 18 Mar 2015 12:23:25 -0000 1.101 +++ dev/pci/mpii.c 7 Mar 2016 13:07:13 -0000 @@ -2983,9 +2983,9 @@ mpii_scsi_cmd_done(struct mpii_ccb *ccb) mpii_push_reply(sc, ccb->ccb_rcb); done: -KERNEL_LOCK(); + KERNEL_LOCK(); scsi_done(xs); -KERNEL_UNLOCK(); + KERNEL_UNLOCK(); } int Index: isofs/cd9660/cd9660_vfsops.c =================================================================== RCS file: /cvs/src/sys/isofs/cd9660/cd9660_vfsops.c,v retrieving revision 1.72 diff -u -p -r1.72 cd9660_vfsops.c --- isofs/cd9660/cd9660_vfsops.c 27 Feb 2016 18:50:38 -0000 1.72 +++ isofs/cd9660/cd9660_vfsops.c 7 Mar 2016 13:06:17 -0000 @@ -86,7 +86,7 @@ int iso_disklabelspoof(dev_t dev, void ( struct disklabel *lp); int -cd9660_mountroot() +cd9660_mountroot(void) { struct mount *mp; extern struct vnode *rootvp; Index: kern/kgdb_stub.c =================================================================== RCS file: /cvs/src/sys/kern/kgdb_stub.c,v retrieving revision 1.9 diff -u -p -r1.9 kgdb_stub.c --- kern/kgdb_stub.c 30 Oct 2010 04:17:07 -0000 1.9 +++ kern/kgdb_stub.c 7 Mar 2016 12:54:53 -0000 @@ -531,7 +531,7 @@ kgdb_connect(int verbose) * (This is called by panic, like Debugger()) */ void -kgdb_panic() +kgdb_panic(void) { if (kgdb_dev >= 0 && kgdb_debug_panic) { printf("entering kgdb\n"); Index: kern/vfs_cache.c =================================================================== RCS file: /cvs/src/sys/kern/vfs_cache.c,v retrieving revision 1.47 diff -u -p -r1.47 vfs_cache.c --- kern/vfs_cache.c 14 Mar 2015 03:38:51 -0000 1.47 +++ kern/vfs_cache.c 7 Mar 2016 12:55:22 -0000 @@ -413,7 +413,7 @@ done: * Name cache initialization, from vfs_init() when we are booting */ void -nchinit() +nchinit(void) { TAILQ_INIT(&nclruhead); TAILQ_INIT(&nclruneghead); Index: lib/libkern/__main.c =================================================================== RCS file: /cvs/src/sys/lib/libkern/__main.c,v retrieving revision 1.3 diff -u -p -r1.3 __main.c --- lib/libkern/__main.c 14 Mar 2002 01:27:07 -0000 1.3 +++ lib/libkern/__main.c 7 Mar 2016 12:55:36 -0000 @@ -36,6 +36,6 @@ void __main(void); void -__main() +__main(void) { } Index: lib/libkern/arch/powerpc/__eabi.c =================================================================== RCS file: /cvs/src/sys/lib/libkern/arch/powerpc/__eabi.c,v retrieving revision 1.5 diff -u -p -r1.5 __eabi.c --- lib/libkern/arch/powerpc/__eabi.c 5 Dec 2012 23:20:22 -0000 1.5 +++ lib/libkern/arch/powerpc/__eabi.c 7 Mar 2016 12:55:47 -0000 @@ -36,6 +36,6 @@ void __eabi(void); void -__eabi() +__eabi(void) { } Index: net/if.c =================================================================== RCS file: /cvs/src/sys/net/if.c,v retrieving revision 1.427 diff -u -p -r1.427 if.c --- net/if.c 2 Mar 2016 00:00:16 -0000 1.427 +++ net/if.c 7 Mar 2016 12:57:09 -0000 @@ -225,7 +225,7 @@ struct taskq *softnettq; * parameters. */ void -ifinit() +ifinit(void) { /* * most machines boot with 4 or 5 interfaces, so size the initial map @@ -2555,7 +2555,7 @@ net_tick(void *null) } int -net_livelocked() +net_livelocked(void) { extern int ticks; Index: net/route.c =================================================================== RCS file: /cvs/src/sys/net/route.c,v retrieving revision 1.295 diff -u -p -r1.295 route.c --- net/route.c 26 Feb 2016 07:54:39 -0000 1.295 +++ net/route.c 7 Mar 2016 12:57:46 -0000 @@ -1441,7 +1441,7 @@ static int rt_init_done = 0; */ void -rt_timer_init() +rt_timer_init(void) { static struct timeout rt_timer_timeout; Index: netinet/ip_ah.c =================================================================== RCS file: /cvs/src/sys/netinet/ip_ah.c,v retrieving revision 1.118 diff -u -p -r1.118 ip_ah.c --- netinet/ip_ah.c 15 Jul 2015 22:16:42 -0000 1.118 +++ netinet/ip_ah.c 7 Mar 2016 12:58:13 -0000 @@ -89,7 +89,7 @@ unsigned char ipseczeroes[IPSEC_ZEROES_S * ah_attach() is called from the transformation initialization code. */ int -ah_attach() +ah_attach(void) { return 0; } Index: netinet/ip_divert.c =================================================================== RCS file: /cvs/src/sys/netinet/ip_divert.c,v retrieving revision 1.38 diff -u -p -r1.38 ip_divert.c --- netinet/ip_divert.c 9 Sep 2015 20:15:52 -0000 1.38 +++ netinet/ip_divert.c 7 Mar 2016 12:58:44 -0000 @@ -67,7 +67,7 @@ void divert_detach(struct inpcb *); int divert_output(struct inpcb *, struct mbuf *, struct mbuf *, struct mbuf *); void -divert_init() +divert_init(void) { in_pcbinit(&divbtable, divbhashsize); } Index: netinet/ip_esp.c =================================================================== RCS file: /cvs/src/sys/netinet/ip_esp.c,v retrieving revision 1.136 diff -u -p -r1.136 ip_esp.c --- netinet/ip_esp.c 9 Dec 2015 21:41:50 -0000 1.136 +++ netinet/ip_esp.c 7 Mar 2016 12:59:08 -0000 @@ -84,7 +84,7 @@ struct espstat espstat; * esp_attach() is called from the transformation initialization code. */ int -esp_attach() +esp_attach(void) { return 0; } Index: netinet/ip_ipip.c =================================================================== RCS file: /cvs/src/sys/netinet/ip_ipip.c,v retrieving revision 1.68 diff -u -p -r1.68 ip_ipip.c --- netinet/ip_ipip.c 22 Jan 2016 11:14:58 -0000 1.68 +++ netinet/ip_ipip.c 7 Mar 2016 12:59:30 -0000 @@ -592,7 +592,7 @@ ipip_output(struct mbuf *m, struct tdb * #ifdef IPSEC int -ipe4_attach() +ipe4_attach(void) { return 0; } Index: netinet/ip_mroute.c =================================================================== RCS file: /cvs/src/sys/netinet/ip_mroute.c,v retrieving revision 1.89 diff -u -p -r1.89 ip_mroute.c --- netinet/ip_mroute.c 14 Nov 2015 15:54:27 -0000 1.89 +++ netinet/ip_mroute.c 7 Mar 2016 12:59:55 -0000 @@ -572,7 +572,7 @@ _mfchash(struct in_addr o, struct in_add * Disable multicast routing */ int -ip_mrouter_done() +ip_mrouter_done(void) { vifi_t vifi; struct vif *vifp; Index: netinet/raw_ip.c =================================================================== RCS file: /cvs/src/sys/netinet/raw_ip.c,v retrieving revision 1.85 diff -u -p -r1.85 raw_ip.c --- netinet/raw_ip.c 3 Dec 2015 14:55:18 -0000 1.85 +++ netinet/raw_ip.c 7 Mar 2016 13:00:22 -0000 @@ -107,7 +107,7 @@ struct inpcbtable rawcbtable; * Initialize raw connection block q. */ void -rip_init() +rip_init(void) { in_pcbinit(&rawcbtable, 1); Index: netinet/tcp_input.c =================================================================== RCS file: /cvs/src/sys/netinet/tcp_input.c,v retrieving revision 1.313 diff -u -p -r1.313 tcp_input.c --- netinet/tcp_input.c 22 Jan 2016 11:10:17 -0000 1.313 +++ netinet/tcp_input.c 7 Mar 2016 13:00:42 -0000 @@ -3346,7 +3346,7 @@ do { \ #define SYN_CACHE_TIMESTAMP(sc) tcp_now + (sc)->sc_modulate void -syn_cache_init() +syn_cache_init(void) { int i; Index: netinet/tcp_subr.c =================================================================== RCS file: /cvs/src/sys/netinet/tcp_subr.c,v retrieving revision 1.150 diff -u -p -r1.150 tcp_subr.c --- netinet/tcp_subr.c 24 Oct 2015 16:08:48 -0000 1.150 +++ netinet/tcp_subr.c 7 Mar 2016 13:01:34 -0000 @@ -138,7 +138,7 @@ tcp_seq tcp_iss; * Tcp initialization */ void -tcp_init() +tcp_init(void) { tcp_iss = 1; /* wrong */ pool_init(&tcpcb_pool, sizeof(struct tcpcb), 0, 0, 0, "tcpcb", NULL); @@ -980,7 +980,7 @@ tcp_set_iss_tsm(struct tcpcb *tp) #ifdef TCP_SIGNATURE int -tcp_signature_tdb_attach() +tcp_signature_tdb_attach(void) { return (0); } Index: netinet/tcp_timer.c =================================================================== RCS file: /cvs/src/sys/netinet/tcp_timer.c,v retrieving revision 1.48 diff -u -p -r1.48 tcp_timer.c --- netinet/tcp_timer.c 22 Jul 2014 11:06:10 -0000 1.48 +++ netinet/tcp_timer.c 7 Mar 2016 13:02:11 -0000 @@ -129,7 +129,7 @@ tcp_delack(void *arg) * causes finite state machine actions if timers expire. */ void -tcp_slowtimo() +tcp_slowtimo(void) { int s; Index: netinet/udp_usrreq.c =================================================================== RCS file: /cvs/src/sys/netinet/udp_usrreq.c,v retrieving revision 1.208 diff -u -p -r1.208 udp_usrreq.c --- netinet/udp_usrreq.c 3 Dec 2015 14:05:28 -0000 1.208 +++ netinet/udp_usrreq.c 7 Mar 2016 13:02:34 -0000 @@ -140,7 +140,7 @@ void udp_notify(struct inpcb *, int); #endif void -udp_init() +udp_init(void) { in_pcbinit(&udbtable, UDB_INITIAL_HASH_SIZE); } Index: netinet6/frag6.c =================================================================== RCS file: /cvs/src/sys/netinet6/frag6.c,v retrieving revision 1.66 diff -u -p -r1.66 frag6.c --- netinet6/frag6.c 3 Dec 2015 13:13:04 -0000 1.66 +++ netinet6/frag6.c 7 Mar 2016 13:03:16 -0000 @@ -64,7 +64,7 @@ static __inline int ip6q_lock_try(void); static __inline void ip6q_unlock(void); static __inline int -ip6q_lock_try() +ip6q_lock_try(void) { int s; @@ -80,7 +80,7 @@ ip6q_lock_try() } static __inline void -ip6q_unlock() +ip6q_unlock(void) { int s; Index: netinet6/ip6_divert.c =================================================================== RCS file: /cvs/src/sys/netinet6/ip6_divert.c,v retrieving revision 1.38 diff -u -p -r1.38 ip6_divert.c --- netinet6/ip6_divert.c 11 Sep 2015 08:17:06 -0000 1.38 +++ netinet6/ip6_divert.c 7 Mar 2016 13:03:36 -0000 @@ -69,7 +69,7 @@ int divert6_output(struct inpcb *, struc struct mbuf *); void -divert6_init() +divert6_init(void) { in_pcbinit(&divb6table, divb6hashsize); } Index: netinet6/mld6.c =================================================================== RCS file: /cvs/src/sys/netinet6/mld6.c,v retrieving revision 1.46 diff -u -p -r1.46 mld6.c --- netinet6/mld6.c 12 Sep 2015 13:34:12 -0000 1.46 +++ netinet6/mld6.c 7 Mar 2016 13:03:55 -0000 @@ -93,7 +93,7 @@ void mld6_checktimer(struct ifnet *); static void mld6_sendpkt(struct in6_multi *, int, const struct in6_addr *); void -mld6_init() +mld6_init(void) { static u_int8_t hbh_buf[8]; struct ip6_hbh *hbh = (struct ip6_hbh *)hbh_buf; Index: netinet6/raw_ip6.c =================================================================== RCS file: /cvs/src/sys/netinet6/raw_ip6.c,v retrieving revision 1.87 diff -u -p -r1.87 raw_ip6.c --- netinet6/raw_ip6.c 24 Nov 2015 13:37:16 -0000 1.87 +++ netinet6/raw_ip6.c 7 Mar 2016 13:04:16 -0000 @@ -109,7 +109,7 @@ struct rip6stat rip6stat; * Initialize raw connection block queue. */ void -rip6_init() +rip6_init(void) { in_pcbinit(&rawin6pcbtable, 1); Index: scsi/scsi_base.c =================================================================== RCS file: /cvs/src/sys/scsi/scsi_base.c,v retrieving revision 1.221 diff -u -p -r1.221 scsi_base.c --- scsi/scsi_base.c 7 Jun 2015 19:13:27 -0000 1.221 +++ scsi/scsi_base.c 7 Mar 2016 13:04:50 -0000 @@ -112,7 +112,7 @@ void scsi_xs_get_done(void *, void *); * Called when a scsibus is attached to initialize global data. */ void -scsi_init() +scsi_init(void) { static int scsi_init_done; Index: uvm/uvm_addr.c =================================================================== RCS file: /cvs/src/sys/uvm/uvm_addr.c,v retrieving revision 1.14 diff -u -p -r1.14 uvm_addr.c --- uvm/uvm_addr.c 17 Jul 2015 21:56:14 -0000 1.14 +++ uvm/uvm_addr.c 7 Mar 2016 13:05:21 -0000 @@ -1019,7 +1019,7 @@ const struct uvm_addr_functions uaddr_pi * The random function has a slightly higher change to return a small number. */ vsize_t -uaddr_pivot_random() +uaddr_pivot_random(void) { int r; Index: uvm/uvm_fault.c =================================================================== RCS file: /cvs/src/sys/uvm/uvm_fault.c,v retrieving revision 1.87 diff -u -p -r1.87 uvm_fault.c --- uvm/uvm_fault.c 10 Nov 2015 08:21:28 -0000 1.87 +++ uvm/uvm_fault.c 7 Mar 2016 13:05:40 -0000 @@ -198,7 +198,7 @@ uvmfault_anonflush(struct vm_anon **anon * uvmfault_init: compute proper values for the uvmadvice[] array. */ void -uvmfault_init() +uvmfault_init(void) { int npages; -- Christian "naddy" Weisgerber na...@mips.inka.de