Index | Thread | Search

From:
Jonathan Gray <jsg@jsg.id.au>
Subject:
kernel prototypes without functions
To:
tech@openbsd.org
Date:
Sun, 12 May 2024 13:28:56 +1000

Download raw body.

Thread
  • Jonathan Gray:

    kernel prototypes without functions

Remove prototypes with no matching function.

diff --git sys/arch/amd64/amd64/process_machdep.c sys/arch/amd64/amd64/process_machdep.c
index e61409c3b4d..7f8fc6aba96 100644
--- sys/arch/amd64/amd64/process_machdep.c
+++ sys/arch/amd64/amd64/process_machdep.c
@@ -65,10 +65,6 @@
 
 static __inline struct trapframe *process_frame(struct proc *);
 static __inline struct fxsave64 *process_fpframe(struct proc *);
-#if 0
-static __inline int verr_gdt(struct pmap *, int sel);
-static __inline int verr_ldt(struct pmap *, int sel);
-#endif
 
 static __inline struct trapframe *
 process_frame(struct proc *p)
diff --git sys/arch/amd64/amd64/vmm_machdep.c sys/arch/amd64/amd64/vmm_machdep.c
index b2b7c340163..54e8303d261 100644
--- sys/arch/amd64/amd64/vmm_machdep.c
+++ sys/arch/amd64/amd64/vmm_machdep.c
@@ -115,7 +115,6 @@ int vmm_inject_ud(struct vcpu *);
 int vmm_inject_gp(struct vcpu *);
 int vmm_inject_db(struct vcpu *);
 void vmx_handle_intr(struct vcpu *);
-void vmx_handle_intwin(struct vcpu *);
 void vmx_handle_misc_enable_msr(struct vcpu *);
 int vmm_get_guest_memtype(struct vm *, paddr_t);
 int vmx_get_guest_faulttype(void);
diff --git sys/arch/amd64/pci/acpipci.c sys/arch/amd64/pci/acpipci.c
index 2600846cb5f..ae29711c447 100644
--- sys/arch/amd64/pci/acpipci.c
+++ sys/arch/amd64/pci/acpipci.c
@@ -85,7 +85,6 @@ const char *acpipci_hids[] = {
 	NULL
 };
 
-void	acpipci_attach_deferred(struct device *);
 int	acpipci_print(void *, const char *);
 int	acpipci_parse_resources(int, union acpi_resource *, void *);
 void	acpipci_osc(struct acpipci_softc *);
diff --git sys/arch/arm/armv7/armv7var.h sys/arch/arm/armv7/armv7var.h
index fca402f7fa3..06955322c6a 100644
--- sys/arch/arm/armv7/armv7var.h
+++ sys/arch/arm/armv7/armv7var.h
@@ -1,3 +1 @@
 extern struct bus_space armv7_bs_tag;
-
-void armv7_intr_bootstrap(vaddr_t);
diff --git sys/arch/arm64/dev/agintc.c sys/arch/arm64/dev/agintc.c
index df9b70a9067..9769c9b0a4e 100644
--- sys/arch/arm64/dev/agintc.c
+++ sys/arch/arm64/dev/agintc.c
@@ -255,9 +255,7 @@ void		agintc_route(struct agintc_softc *, int, int,
 		    struct cpu_info *);
 void		agintc_route_irq(void *, int, struct cpu_info *);
 void		agintc_intr_barrier(void *);
-void		agintc_wait_rwp(struct agintc_softc *sc);
 void		agintc_r_wait_rwp(struct agintc_softc *sc);
-uint32_t	agintc_r_ictlr(void);
 
 int		agintc_ipi_ddb(void *v);
 int		agintc_ipi_halt(void *v);
diff --git sys/arch/arm64/dev/apldart.c sys/arch/arm64/dev/apldart.c
index 3d285ec6cef..644b09133bb 100644
--- sys/arch/arm64/dev/apldart.c
+++ sys/arch/arm64/dev/apldart.c
@@ -241,8 +241,6 @@ int	apldart_dmamap_load_raw(bus_dma_tag_t, bus_dmamap_t,
 	    bus_dma_segment_t *, int, bus_size_t, int);
 void	apldart_dmamap_unload(bus_dma_tag_t, bus_dmamap_t);
 
-void	apldart_write(struct apldart_softc *sc, bus_size_t, uint32_t);
-
 int
 apldart_match(struct device *parent, void *match, void *aux)
 {
diff --git sys/arch/arm64/dev/aplefuse.c sys/arch/arm64/dev/aplefuse.c
index 53eb1e4e329..75666bd0c46 100644
--- sys/arch/arm64/dev/aplefuse.c
+++ sys/arch/arm64/dev/aplefuse.c
@@ -47,7 +47,6 @@ struct cfdriver aplefuse_cd = {
 };
 
 int	aplefuse_nvmem_read(void *, bus_addr_t, void *, bus_size_t);
-int	aplefuse_nvmem_write(void *, bus_addr_t, const void *, bus_size_t);
 
 int
 aplefuse_match(struct device *parent, void *match, void *aux)
diff --git sys/arch/arm64/dev/aplspi.c sys/arch/arm64/dev/aplspi.c
index 4ac110de28a..7f26525d69f 100644
--- sys/arch/arm64/dev/aplspi.c
+++ sys/arch/arm64/dev/aplspi.c
@@ -89,7 +89,6 @@ int	 aplspi_acquire_bus(void *, int);
 void	 aplspi_release_bus(void *, int);
 
 void	 aplspi_set_cs(struct aplspi_softc *, int, int);
-int	 aplspi_wait_state(struct aplspi_softc *, uint32_t, uint32_t);
 
 void	 aplspi_scan(struct aplspi_softc *);
 
diff --git sys/arch/armv7/exynos/exiic.c sys/arch/armv7/exynos/exiic.c
index fae1ee1a45e..b806486b232 100644
--- sys/arch/armv7/exynos/exiic.c
+++ sys/arch/armv7/exynos/exiic.c
@@ -82,7 +82,6 @@ int exiic_detach(struct device *, int);
 void exiic_scan(struct device *, struct i2cbus_attach_args *, void *);
 void exiic_setspeed(struct exiic_softc *, int);
 int exiic_wait_state(struct exiic_softc *, uint32_t, uint32_t, uint32_t);
-int exiic_start(struct exiic_softc *, int, int, void *, int);
 
 void exiic_xfer_start(struct exiic_softc *);
 int exiic_xfer_wait(struct exiic_softc *);
diff --git sys/arch/armv7/exynos/exmct.c sys/arch/armv7/exynos/exmct.c
index ec30381b806..ea0d1e70150 100644
--- sys/arch/armv7/exynos/exmct.c
+++ sys/arch/armv7/exynos/exmct.c
@@ -45,8 +45,6 @@ struct exmct_softc *exmct_sc;
 
 int exmct_match(struct device *, void *, void *);
 void exmct_attach(struct device *, struct device *, void *);
-void exmct_stop(void);
-void exmct_reset(void);
 
 const struct cfattach	exmct_ca = {
 	sizeof (struct exmct_softc), exmct_match, exmct_attach
diff --git sys/arch/armv7/omap/amdisplay.c sys/arch/armv7/omap/amdisplay.c
index 551fb3b1804..d0f160a77b1 100644
--- sys/arch/armv7/omap/amdisplay.c
+++ sys/arch/armv7/omap/amdisplay.c
@@ -91,7 +91,6 @@ struct amdisplay_softc {
 int	amdisplay_match(struct device *, void *, void *);
 void	amdisplay_attach(struct device *, struct device *, void *);
 int	amdisplay_detach(struct device *, int);
-int	amdisplay_activate(struct device *, int);
 int	amdisplay_intr(void *);
 
 int	amdisplay_ioctl(void *, u_long, caddr_t, int, struct proc *);
diff --git sys/arch/armv7/omap/omapid.c sys/arch/armv7/omap/omapid.c
index 7de7818d791..f78a76a5b31 100644
--- sys/arch/armv7/omap/omapid.c
+++ sys/arch/armv7/omap/omapid.c
@@ -44,7 +44,6 @@ struct omapid_softc *omapid_sc;
 
 
 void omapid_attach(struct device *parent, struct device *self, void *args);
-void omapid_wpending(int flags);
 
 const struct cfattach	omapid_ca = {
 	sizeof (struct omapid_softc), NULL, omapid_attach
diff --git sys/arch/armv7/omap/omdisplay.c sys/arch/armv7/omap/omdisplay.c
index e80a2218421..6e022938306 100644
--- sys/arch/armv7/omap/omdisplay.c
+++ sys/arch/armv7/omap/omdisplay.c
@@ -453,7 +453,6 @@ void omdisplay_free_screen(void *v, void *cookie);
 void omdisplay_start(struct omdisplay_softc *sc);
 void omdisplay_stop(struct omdisplay_softc *sc);
 int omdisplay_intr(void *v);
-void omdisplay_dumpreg(struct omdisplay_softc *sc);
 
 const struct cfattach	omdisplay_ca = {
 	sizeof (struct omdisplay_softc), omdisplay_match, omdisplay_attach,
diff --git sys/arch/armv7/omap/omehci.c sys/arch/armv7/omap/omehci.c
index 7cbfa300469..cc8c9a23684 100644
--- sys/arch/armv7/omap/omehci.c
+++ sys/arch/armv7/omap/omehci.c
@@ -85,11 +85,6 @@ struct omehci_softc {
 
 int omehci_init(struct omehci_softc *);
 void omehci_soft_phy_reset(struct omehci_softc *sc, unsigned int port);
-void omehci_enable(struct omehci_softc *);
-void omehci_disable(struct omehci_softc *);
-void omehci_utmi_init(struct omehci_softc *sc, unsigned int en_mask);
-void misc_setup(struct omehci_softc *sc);
-void omehci_uhh_init(struct omehci_softc *sc);
 
 const struct cfattach omehci_ca = {
 	sizeof (struct omehci_softc), omehci_match, omehci_attach,
diff --git sys/arch/armv7/omap/prcm.c sys/arch/armv7/omap/prcm.c
index 25090c29a1b..ea302a2812a 100644
--- sys/arch/armv7/omap/prcm.c
+++ sys/arch/armv7/omap/prcm.c
@@ -88,7 +88,6 @@ struct prcm_softc {
 	uint32_t		cm2_avail;
 };
 
-int	prcm_match(struct device *, void *, void *);
 void	prcm_attach(struct device *, struct device *, void *);
 int	prcm_setup_dpll5(struct prcm_softc *);
 uint32_t prcm_v3_bit(int mod);
diff --git sys/arch/armv7/omap/prcmvar.h sys/arch/armv7/omap/prcmvar.h
index 0e823de4c28..042b7f59ba5 100644
--- sys/arch/armv7/omap/prcmvar.h
+++ sys/arch/armv7/omap/prcmvar.h
@@ -17,7 +17,6 @@
 
 void prcm_setclock(int clock, int speed);
 void prcm_enablemodule(int mod);
-void prcm_disablemodule(int mod);
 
 #define PRCM_CLK_SPEED_32	0
 #define PRCM_CLK_SPEED_SYS	1
diff --git sys/arch/armv7/sunxi/sxitimer.c sys/arch/armv7/sunxi/sxitimer.c
index 6c4ec50c290..410faddf10a 100644
--- sys/arch/armv7/sunxi/sxitimer.c
+++ sys/arch/armv7/sunxi/sxitimer.c
@@ -75,7 +75,6 @@
 int	sxitimer_match(struct device *, void *, void *);
 void	sxitimer_attach(struct device *, struct device *, void *);
 int	sxitimer_tickintr(void *);
-int	sxitimer_statintr(void *);
 void	sxitimer_cpu_initclocks(void);
 void	sxitimer_cpu_startclock(void);
 void	sxitimer_setstatclockrate(int);
diff --git sys/arch/i386/i386/mpbios.c sys/arch/i386/i386/mpbios.c
index 25e07d88db3..dfa7be80987 100644
--- sys/arch/i386/i386/mpbios.c
+++ sys/arch/i386/i386/mpbios.c
@@ -152,7 +152,6 @@ struct mp_map
 
 int	mp_print(void *, const char *);
 int	mp_match(struct device *, void *, void *);
-int	mpbios_cpu_start(struct cpu_info *);
 const void *mpbios_search(struct device *, paddr_t, int, struct mp_map *);
 static __inline int mpbios_cksum(const void *, int);
 
diff --git sys/arch/i386/isa/clock.c sys/arch/i386/isa/clock.c
index 15dee6a3168..95cc98d36e1 100644
--- sys/arch/i386/isa/clock.c
+++ sys/arch/i386/isa/clock.c
@@ -105,7 +105,6 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #include <dev/ic/i8253reg.h>
 #include <i386/isa/nvram.h>
 
-void	spinwait(int);
 int	clockintr(void *);
 int	gettick(void);
 int	rtcget(mc_todregs *);
diff --git sys/arch/i386/isa/npx.c sys/arch/i386/isa/npx.c
index 2259437beec..7976576db69 100644
--- sys/arch/i386/isa/npx.c
+++ sys/arch/i386/isa/npx.c
@@ -157,7 +157,6 @@ npxdna_notset(struct cpu_info *ci)
 int    (*npxdna_func)(struct cpu_info *) = npxdna_notset;
 int    npxdna_s87(struct cpu_info *);
 int    npxdna_xmm(struct cpu_info *);
-void   npxexit(void);
 
 /*
  * Special interrupt handlers.  Someday intr0-intr15 will be used to count
diff --git sys/arch/i386/pci/pcibiosvar.h sys/arch/i386/pci/pcibiosvar.h
index a03ed2c2aa9..4babbb75872 100644
--- sys/arch/i386/pci/pcibiosvar.h
+++ sys/arch/i386/pci/pcibiosvar.h
@@ -105,8 +105,6 @@ struct pcibios_pir_header {
 #define	PIR_DEVFUNC_FUNCTION(devfunc)	((devfunc) & 7)
 #define	PIR_DEVFUNC_COMPOSE(dev,func)	((((dev) &0x1f) << 3) | ((func) & 7))
 
-void	pcibios_init(void);
-
 extern struct pcibios_pir_header pcibios_pir_header;
 extern struct pcibios_intr_routing *pcibios_pir_table;
 extern int pcibios_pir_table_nentries;
diff --git sys/arch/riscv64/dev/mainbus.c sys/arch/riscv64/dev/mainbus.c
index c51f6b025e8..68467607a8e 100644
--- sys/arch/riscv64/dev/mainbus.c
+++ sys/arch/riscv64/dev/mainbus.c
@@ -37,7 +37,6 @@ int mainbus_match_status(struct device *, void *, void *);
 void mainbus_attach_cpus(struct device *, cfmatch_t);
 int mainbus_match_primary(struct device *, void *, void *);
 int mainbus_match_secondary(struct device *, void *, void *);
-void mainbus_attach_efi(struct device *);
 void mainbus_attach_framebuffer(struct device *);
 
 struct mainbus_softc {
diff --git sys/arch/sparc64/dev/cons.h sys/arch/sparc64/dev/cons.h
index 71a1b9d382c..4b84cca4f4f 100644
--- sys/arch/sparc64/dev/cons.h
+++ sys/arch/sparc64/dev/cons.h
@@ -38,8 +38,6 @@ struct zs_chanstate;
 
 extern void *zs_conschan;
 
-extern void nullcnprobe(struct consdev *);
-
 extern int  zs_getc(void *arg);
 extern void zs_putc(void *arg, int c);
 
diff --git sys/arch/sparc64/dev/fd.c sys/arch/sparc64/dev/fd.c
index 7613601342c..ef3ff3b1262 100644
--- sys/arch/sparc64/dev/fd.c
+++ sys/arch/sparc64/dev/fd.c
@@ -286,7 +286,6 @@ struct cfdriver fd_cd = {
 };
 
 int fdgetdisklabel(dev_t, struct fd_softc *, struct disklabel *, int);
-int fd_get_parms(struct fd_softc *);
 void fdstrategy(struct buf *);
 void fdstart(struct fd_softc *);
 int fdprint(void *, const char *);
diff --git sys/arch/sparc64/dev/vgafb.c sys/arch/sparc64/dev/vgafb.c
index abab50a835f..48485c4340b 100644
--- sys/arch/sparc64/dev/vgafb.c
+++ sys/arch/sparc64/dev/vgafb.c
@@ -75,7 +75,6 @@ struct vgafb_softc {
 };
 
 int vgafb_mapregs(struct vgafb_softc *, struct pci_attach_args *);
-int vgafb_rommap(struct vgafb_softc *, struct pci_attach_args *);
 int vgafb_ioctl(void *, u_long, caddr_t, int, struct proc *);
 paddr_t vgafb_mmap(void *, off_t, int);
 int vgafb_is_console(int);
diff --git sys/arch/sparc64/dev/vpci.c sys/arch/sparc64/dev/vpci.c
index afaae203209..56a5b6fb884 100644
--- sys/arch/sparc64/dev/vpci.c
+++ sys/arch/sparc64/dev/vpci.c
@@ -141,15 +141,6 @@ int vpci_msi_eq_intr(void *);
 
 int vpci_dmamap_create(bus_dma_tag_t, bus_dma_tag_t, bus_size_t, int,
     bus_size_t, bus_size_t, int, bus_dmamap_t *);
-void vpci_dmamap_destroy(bus_dma_tag_t, bus_dma_tag_t, bus_dmamap_t);
-int vpci_dmamap_load(bus_dma_tag_t, bus_dma_tag_t, bus_dmamap_t,
-    void *, bus_size_t, struct proc *, int);
-void vpci_dmamap_unload(bus_dma_tag_t, bus_dma_tag_t, bus_dmamap_t);
-int vpci_dmamem_alloc(bus_dma_tag_t, bus_dma_tag_t, bus_size_t,
-    bus_size_t, bus_size_t, bus_dma_segment_t *, int, int *, int);
-int vpci_dmamem_map(bus_dma_tag_t, bus_dma_tag_t, bus_dma_segment_t *,
-    int, size_t, caddr_t *, int);
-void vpci_dmamem_unmap(bus_dma_tag_t, bus_dma_tag_t, caddr_t, size_t);
 
 int
 vpci_match(struct device *parent, void *match, void *aux)
diff --git sys/arch/sparc64/dev/z8530kbd.c sys/arch/sparc64/dev/z8530kbd.c
index 6d7ceb34611..b3e3037b0eb 100644
--- sys/arch/sparc64/dev/z8530kbd.c
+++ sys/arch/sparc64/dev/z8530kbd.c
@@ -220,7 +220,6 @@ static void zskbd_diag(void *);
 
 int zskbd_init(struct zskbd_softc *);
 void zskbd_putc(struct zskbd_softc *, u_int8_t);
-void zskbd_raw(struct zskbd_softc *, u_int8_t);
 
 /* wskbd glue */
 void zskbd_cngetc(void *, u_int *, int *);
diff --git sys/arch/sparc64/fpu/fpu_extern.h sys/arch/sparc64/fpu/fpu_extern.h
index b54ed041bd1..1414446aa39 100644
--- sys/arch/sparc64/fpu/fpu_extern.h
+++ sys/arch/sparc64/fpu/fpu_extern.h
@@ -40,7 +40,6 @@ union sigval;
 
 /* fpu.c */
 void fpu_cleanup(struct proc *, struct fpstate *, union instr, union sigval);
-int fpu_emulate(struct proc *, struct trapframe *, struct fpstate *);
 int fpu_execute(struct proc *, struct fpemu *, union instr);
 
 /* fpu_add.c */
diff --git sys/arch/sparc64/sparc64/autoconf.c sys/arch/sparc64/sparc64/autoconf.c
index cd08a83cdbe..909dcbcd3b5 100644
--- sys/arch/sparc64/sparc64/autoconf.c
+++ sys/arch/sparc64/sparc64/autoconf.c
@@ -137,8 +137,6 @@ void bootpath_nodes(struct bootpath *, int);
 
 struct openbsd_bootdata obd __attribute__((section(".openbsd.bootdata")));
 
-int bus_class(struct device *);
-int instance_match(struct device *, void *, struct bootpath *bp);
 void nail_bootdev(struct device *, struct bootpath *);
 
 /* Global interrupt mappings for all device types.  Match against the OBP
diff --git sys/arch/sparc64/sparc64/db_interface.c sys/arch/sparc64/sparc64/db_interface.c
index dc9003991ab..a997211ac33 100644
--- sys/arch/sparc64/sparc64/db_interface.c
+++ sys/arch/sparc64/sparc64/db_interface.c
@@ -219,8 +219,6 @@ void db_pmap_kernel(db_expr_t, int, db_expr_t, char *);
 void db_pload_cmd(db_expr_t, int, db_expr_t, char *);
 void db_pmap_cmd(db_expr_t, int, db_expr_t, char *);
 void db_lock(db_expr_t, int, db_expr_t, char *);
-void db_dump_buf(db_expr_t, int, db_expr_t, char *);
-void db_dump_espcmd(db_expr_t, int, db_expr_t, char *);
 void db_watch(db_expr_t, int, db_expr_t, char *);
 void db_xir(db_expr_t, int, db_expr_t, char *);
 
diff --git sys/ddb/db_command.c sys/ddb/db_command.c
index ca4226c512a..4d6b368220e 100644
--- sys/ddb/db_command.c
+++ sys/ddb/db_command.c
@@ -115,7 +115,6 @@ void	db_stack_trace_cmd(db_expr_t, int, db_expr_t, char *);
 void	db_dmesg_cmd(db_expr_t, int, db_expr_t, char *);
 void	db_show_panic_cmd(db_expr_t, int, db_expr_t, char *);
 void	db_bcstats_print_cmd(db_expr_t, int, db_expr_t, char *);
-void	db_struct_offset_cmd(db_expr_t, int, db_expr_t, char *);
 void	db_ctf_show_struct(db_expr_t, int, db_expr_t, char *);
 void	db_show_regs(db_expr_t, int, db_expr_t, char *);
 void	db_write_cmd(db_expr_t, int, db_expr_t, char *);
diff --git sys/ddb/db_extern.h sys/ddb/db_extern.h
index 20b8a3bcecd..636d6ff0a87 100644
--- sys/ddb/db_extern.h
+++ sys/ddb/db_extern.h
@@ -55,7 +55,6 @@ int db_readline(char *, int);
 void db_trap(int, int);
 
 /* db_prof.c */
-void db_prof_init(void);
 int db_prof_enable(void);
 void db_prof_disable(void);
 
diff --git sys/dev/acpi/acpi.c sys/dev/acpi/acpi.c
index 70b67bb8fa7..fdafd6c2877 100644
--- sys/dev/acpi/acpi.c
+++ sys/dev/acpi/acpi.c
@@ -106,8 +106,6 @@ void	acpi_create_thread(void *);
 void	acpi_init_pm(struct acpi_softc *);
 
 int	acpi_founddock(struct aml_node *, void *);
-int	acpi_foundpss(struct aml_node *, void *);
-int	acpi_foundtmp(struct aml_node *, void *);
 int	acpi_foundprw(struct aml_node *, void *);
 int	acpi_foundvideo(struct aml_node *, void *);
 int	acpi_foundsbs(struct aml_node *node, void *);
diff --git sys/dev/acpi/acpidebug.c sys/dev/acpi/acpidebug.c
index e9dfeec950c..27c2280da7e 100644
--- sys/dev/acpi/acpidebug.c
+++ sys/dev/acpi/acpidebug.c
@@ -48,10 +48,6 @@ void			db_aml_showvalue(struct aml_value *);
 void			db_aml_walktree(struct aml_node *);
 void			db_disprint(void *, const char *, ...);
 
-const char		*db_aml_fieldacc(int);
-const char		*db_aml_fieldlock(int);
-const char		*db_aml_fieldupdate(int);
-
 /* name of scope for lexer */
 char			scope[80];
 
diff --git sys/dev/acpi/acpidmar.h sys/dev/acpi/acpidmar.h
index 55dba87b923..61d02248a55 100644
--- sys/dev/acpi/acpidmar.h
+++ sys/dev/acpi/acpidmar.h
@@ -531,6 +531,5 @@ enum {
 
 void	acpidmar_pci_hook(pci_chipset_tag_t, struct pci_attach_args *);
 void	dmar_ptmap(bus_dma_tag_t, bus_addr_t);
-void	acpidmar_sw(int);
 
 #define __EXTRACT(v,m) (((v) >> m##_SHIFT) & m##_MASK)
diff --git sys/dev/acpi/acpitz.c sys/dev/acpi/acpitz.c
index 39230579346..09bba236922 100644
--- sys/dev/acpi/acpitz.c
+++ sys/dev/acpi/acpitz.c
@@ -78,7 +78,6 @@ struct cfdriver acpitz_cd = {
 
 void	acpitz_init_perf(void *);
 void	acpitz_setperf(int);
-void	acpitz_monitor(struct acpitz_softc *);
 void	acpitz_refresh(void *);
 int	acpitz_notify(struct aml_node *, int, void *);
 int	acpitz_gettempreading(struct acpitz_softc *, char *);
diff --git sys/dev/acpi/acpivar.h sys/dev/acpi/acpivar.h
index 20521653bc8..fd7b24e980e 100644
--- sys/dev/acpi/acpivar.h
+++ sys/dev/acpi/acpivar.h
@@ -340,7 +340,6 @@ int	 acpi_sleep_cpu(struct acpi_softc *, int);
 void	 acpi_sleep_pm(struct acpi_softc *, int);
 void	 acpi_resume_pm(struct acpi_softc *, int);
 void	 acpi_resume_cpu(struct acpi_softc *, int);
-void	 acpi_sleep_walk(struct acpi_softc *, int);
 
 #define ACPI_IOREAD 0
 #define ACPI_IOWRITE 1
@@ -354,12 +353,9 @@ void	acpi_register_gsb(struct acpi_softc *, struct aml_node *);
 
 int	acpi_set_gpehandler(struct acpi_softc *, int,
 	    int (*)(struct acpi_softc *, int, void *), void *, int);
-void	acpi_enable_gpe(struct acpi_softc *, uint32_t);
 
-int	acpiec_intr(struct acpiec_softc *);
 void	acpiec_read(struct acpiec_softc *, uint8_t, int, uint8_t *);
 void	acpiec_write(struct acpiec_softc *, uint8_t, int, uint8_t *);
-void	acpiec_handle_events(struct acpiec_softc *);
 
 #if NACPIPWRRES > 0
 int	acpipwrres_ref_incr(struct acpipwrres_softc *, struct aml_node *);
diff --git sys/dev/acpi/dsdt.c sys/dev/acpi/dsdt.c
index 654a37c0961..ba621d9a72a 100644
--- sys/dev/acpi/dsdt.c
+++ sys/dev/acpi/dsdt.c
@@ -78,13 +78,6 @@ void			aml_bufcpy(void *, int, const void *, int, int);
 
 int			aml_pc(uint8_t *);
 
-struct aml_value	*aml_parseop(struct aml_scope *, struct aml_value *,int);
-struct aml_value	*aml_parsetarget(struct aml_scope *, struct aml_value *,
-			    struct aml_value **);
-struct aml_value	*aml_parseterm(struct aml_scope *, struct aml_value *);
-
-struct aml_value	*aml_evaltarget(struct aml_scope *scope,
-			    struct aml_value *res);
 int			aml_evalterm(struct aml_scope *scope,
 			    struct aml_value *raw, struct aml_value *dst);
 
diff --git sys/dev/acpi/dsdt.h sys/dev/acpi/dsdt.h
index f63d8b4ac91..e920a19122a 100644
--- sys/dev/acpi/dsdt.h
+++ sys/dev/acpi/dsdt.h
@@ -51,8 +51,6 @@ struct aml_value	*aml_allocvalue(int, int64_t, const void *);
 void			aml_freevalue(struct aml_value *);
 void			aml_notify(struct aml_node *, int);
 void			aml_showvalue(struct aml_value *);
-void			aml_walkroot(void);
-void			aml_walktree(struct aml_node *);
 
 void			aml_find_node(struct aml_node *, const char *,
 			    int (*)(struct aml_node *, void *), void *);
@@ -325,7 +323,6 @@ const char		*aml_val_to_string(const struct aml_value *);
 void			aml_disasm(struct aml_scope *scope, int lvl,
 			    void (*dbprintf)(void *, const char *, ...),
 			    void *arg);
-int			aml_getpci(struct aml_node *, int64_t *);
 int			aml_evalhid(struct aml_node *, struct aml_value *);
 
 int			acpi_walkmem(int, const char *);
diff --git sys/dev/acpi/dwgpio.c sys/dev/acpi/dwgpio.c
index 8dd10dbaf21..ae41fec4dc9 100644
--- sys/dev/acpi/dwgpio.c
+++ sys/dev/acpi/dwgpio.c
@@ -91,7 +91,6 @@ int	dwgpio_found_hid(struct aml_node *, void *);
 int	dwgpio_read_pin(void *, int);
 void	dwgpio_write_pin(void *, int, int);
 void	dwgpio_intr_establish(void *, int, int, int (*)(void *), void *);
-int	dwgpio_pin_intr(struct dwgpio_softc *, int);
 int	dwgpio_intr(void *);
 
 int
diff --git sys/dev/acpi/glkgpio.c sys/dev/acpi/glkgpio.c
index 5eccb72e4af..59b01c47a41 100644
--- sys/dev/acpi/glkgpio.c
+++ sys/dev/acpi/glkgpio.c
@@ -73,7 +73,6 @@ const char *glkgpio_hids[] = {
 	NULL
 };
 
-int	glkgpio_parse_resources(int, union acpi_resource *, void *);
 int	glkgpio_read_pin(void *, int);
 void	glkgpio_write_pin(void *, int, int);
 void	glkgpio_intr_establish(void *, int, int, int (*)(void *), void *);
diff --git sys/dev/acpi/tpm.c sys/dev/acpi/tpm.c
index a00368c38c1..cd65b3cf9bf 100644
--- sys/dev/acpi/tpm.c
+++ sys/dev/acpi/tpm.c
@@ -218,8 +218,6 @@ int	tpm_request_locality_tis(struct tpm_softc *, int);
 int	tpm_request_locality_crb(struct tpm_softc *, int);
 void	tpm_release_locality_tis(struct tpm_softc *);
 void	tpm_release_locality_crb(struct tpm_softc *);
-int	tpm_getburst_tis(struct tpm_softc *);
-int	tpm_getburst_crb(struct tpm_softc *);
 uint8_t	tpm_status(struct tpm_softc *);
 
 uint32_t tpm2_start_method(struct acpi_softc *);
diff --git sys/dev/adb/ams.c sys/dev/adb/ams.c
index 7b79b78c080..c7acb8e945c 100644
--- sys/dev/adb/ams.c
+++ sys/dev/adb/ams.c
@@ -70,7 +70,6 @@ const struct wsmouse_accessops ams_accessops = {
 
 void	ems_init(struct ams_softc *);
 void	ms_adbcomplete(caddr_t buffer, caddr_t data_area, int adb_command);
-void	ms_handoff(adb_event_t *event, struct ams_softc *);
 void	ms_processevent(adb_event_t *event, struct ams_softc *);
 
 int
diff --git sys/dev/ata/atascsi.c sys/dev/ata/atascsi.c
index 934ed425630..64bef34ee78 100644
--- sys/dev/ata/atascsi.c
+++ sys/dev/ata/atascsi.c
@@ -128,7 +128,6 @@ void		atascsi_atapi_cmd(struct scsi_xfer *);
 void		atascsi_atapi_cmd_done(struct ata_xfer *);
 
 void		atascsi_pmp_cmd(struct scsi_xfer *);
-void		atascsi_pmp_cmd_done(struct ata_xfer *);
 void		atascsi_pmp_sense(struct scsi_xfer *xs);
 void		atascsi_pmp_inq(struct scsi_xfer *xs);
 
diff --git sys/dev/ata/atavar.h sys/dev/ata/atavar.h
index 0ee4c95c316..191f4448419 100644
--- sys/dev/ata/atavar.h
+++ sys/dev/ata/atavar.h
@@ -168,7 +168,6 @@ void wdc_reset_channel(struct ata_drive_datas *, int);
 
 int wdc_ata_addref(struct ata_drive_datas *);
 void wdc_ata_delref(struct ata_drive_datas *);
-void wdc_ata_kill_pending(struct ata_drive_datas *);
 
 int ata_get_params(struct ata_drive_datas*, u_int8_t,
 	struct ataparams *);
diff --git sys/dev/cons.h sys/dev/cons.h
index 7dedd481a1f..8806c573715 100644
--- sys/dev/cons.h
+++ sys/dev/cons.h
@@ -86,7 +86,6 @@ int	cngetc(void);
 void	cnputc(int);
 void	cnpollc(int);
 void	cnbell(u_int, u_int, u_int);
-void	cnrint(void);
 void	nullcnpollc(dev_t, int);
 
 /* console-specific types */
diff --git sys/dev/fdt/amlusbphy.c sys/dev/fdt/amlusbphy.c
index 9ceb64afbad..b206a9c5bb4 100644
--- sys/dev/fdt/amlusbphy.c
+++ sys/dev/fdt/amlusbphy.c
@@ -109,8 +109,6 @@ struct cfdriver amlusbphy_cd = {
 };
 
 int	amlusbphy_enable(void *, uint32_t *);
-uint16_t amlusbphy_read(struct amlusbphy_softc *, bus_addr_t);
-void	amlusbphy_write(struct amlusbphy_softc *, bus_addr_t, uint16_t);
 
 int
 amlusbphy_match(struct device *parent, void *match, void *aux)
diff --git sys/dev/fdt/if_mvpp.c sys/dev/fdt/if_mvpp.c
index f3347fa38ed..11498f892dc 100644
--- sys/dev/fdt/if_mvpp.c
+++ sys/dev/fdt/if_mvpp.c
@@ -284,7 +284,6 @@ void	mvpp2_inband_statchg(struct mvpp2_port *);
 void	mvpp2_port_change(struct mvpp2_port *);
 
 void	mvpp2_tick(void *);
-void	mvpp2_rxtick(void *);
 
 int	mvpp2_link_intr(void *);
 int	mvpp2_intr(void *);
@@ -322,7 +321,6 @@ struct mvpp2_dmamem *
 	mvpp2_dmamem_alloc(struct mvpp2_softc *, bus_size_t, bus_size_t);
 void	mvpp2_dmamem_free(struct mvpp2_softc *, struct mvpp2_dmamem *);
 struct mbuf *mvpp2_alloc_mbuf(struct mvpp2_softc *, bus_dmamap_t);
-void	mvpp2_fill_rx_ring(struct mvpp2_softc *);
 
 void	mvpp2_interrupts_enable(struct mvpp2_port *, int);
 void	mvpp2_interrupts_disable(struct mvpp2_port *, int);
diff --git sys/dev/fdt/imxspi.c sys/dev/fdt/imxspi.c
index 705baaeae61..fc6b1c3e7ec 100644
--- sys/dev/fdt/imxspi.c
+++ sys/dev/fdt/imxspi.c
@@ -106,7 +106,6 @@ int	 imxspi_match(struct device *, void *, void *);
 void	 imxspi_attach(struct device *, struct device *, void *);
 void	 imxspi_attachhook(struct device *);
 int	 imxspi_detach(struct device *, int);
-int	 imxspi_intr(void *);
 
 void	 imxspi_config(void *, struct spi_config *);
 uint32_t imxspi_clkdiv(struct imxspi_softc *, uint32_t);
diff --git sys/dev/fdt/qccpu.c sys/dev/fdt/qccpu.c
index 033f622ca75..754d6084b1c 100644
--- sys/dev/fdt/qccpu.c
+++ sys/dev/fdt/qccpu.c
@@ -78,7 +78,6 @@ struct qccpu_softc {
 
 int	qccpu_match(struct device *, void *, void *);
 void	qccpu_attach(struct device *, struct device *, void *);
-void	qccpu_enable(void *, uint32_t *, int);
 int	qccpu_set_frequency(void *, uint32_t *, uint32_t);
 uint32_t qccpu_get_frequency(void *, uint32_t *);
 uint32_t qccpu_lut_to_freq(struct qccpu_softc *, int, uint32_t);
diff --git sys/dev/fdt/qcgpio_fdt.c sys/dev/fdt/qcgpio_fdt.c
index 6af1f684bfd..95236a9e8bc 100644
--- sys/dev/fdt/qcgpio_fdt.c
+++ sys/dev/fdt/qcgpio_fdt.c
@@ -93,7 +93,6 @@ void	qcgpio_fdt_intr_disestablish(void *);
 void	qcgpio_fdt_intr_enable(void *);
 void	qcgpio_fdt_intr_disable(void *);
 void	qcgpio_fdt_intr_barrier(void *);
-int	qcgpio_fdt_pin_intr(struct qcgpio_softc *, int);
 int	qcgpio_fdt_intr(void *);
 
 int
diff --git sys/dev/fdt/qcrtc.c sys/dev/fdt/qcrtc.c
index 22783cd82db..a6b8dec42bd 100644
--- sys/dev/fdt/qcrtc.c
+++ sys/dev/fdt/qcrtc.c
@@ -60,8 +60,6 @@ struct cfdriver qcrtc_cd = {
 int	qcrtc_gettime(struct todr_chip_handle *, struct timeval *);
 int	qcrtc_settime(struct todr_chip_handle *, struct timeval *);
 
-void	qcrtc_tick(void *);
-
 extern int qcscm_uefi_rtc_get(uint32_t *);
 extern int qcscm_uefi_rtc_set(uint32_t);
 
diff --git sys/dev/fdt/qcspmi.c sys/dev/fdt/qcspmi.c
index f99e888cad5..b1d82c59f32 100644
--- sys/dev/fdt/qcspmi.c
+++ sys/dev/fdt/qcspmi.c
@@ -165,7 +165,6 @@ void	qcspmi_intr_disestablish(void *);
 void	qcspmi_intr_enable(void *);
 void	qcspmi_intr_disable(void *);
 void	qcspmi_intr_barrier(void *);
-int	qcspmi_pin_intr(struct qcspmi_softc *, int);
 int	qcspmi_intr(void *);
 
 const struct cfattach qcspmi_ca = {
diff --git sys/dev/fdt/rkdrm.c sys/dev/fdt/rkdrm.c
index 16f4374cad7..4caed0933d1 100644
--- sys/dev/fdt/rkdrm.c
+++ sys/dev/fdt/rkdrm.c
@@ -51,11 +51,6 @@ int	rkdrm_match(struct device *, void *, void *);
 void	rkdrm_attach(struct device *, struct device *, void *);
 void	rkdrm_attachhook(struct device *);
 
-#ifdef notyet
-vmem_t	*rkdrm_alloc_cma_pool(struct drm_device *, size_t);
-#endif
-
-int	rkdrm_load(struct drm_device *, unsigned long);
 int	rkdrm_unload(struct drm_device *);
 
 struct drm_driver rkdrm_driver = {
@@ -212,8 +207,6 @@ int rkdrm_show_screen(void *, void *, int,
     void (*)(void *, int, int), void *);
 void rkdrm_doswitch(void *);
 void rkdrm_enter_ddb(void *, void *);
-int rkdrm_get_param(struct wsdisplay_param *);
-int rkdrm_set_param(struct wsdisplay_param *);
 
 struct wsscreen_descr rkdrm_stdscreen = {
 	"std",
diff --git sys/dev/fdt/rkspi.c sys/dev/fdt/rkspi.c
index 0f0fc4d30a0..0154171d61e 100644
--- sys/dev/fdt/rkspi.c
+++ sys/dev/fdt/rkspi.c
@@ -105,7 +105,6 @@ struct rkspi_softc {
 int	 rkspi_match(struct device *, void *, void *);
 void	 rkspi_attach(struct device *, struct device *, void *);
 int	 rkspi_detach(struct device *, int);
-int	 rkspi_intr(void *);
 
 void	 rkspi_config(void *, struct spi_config *);
 int	 rkspi_transfer(void *, char *, char *, int, int);
diff --git sys/dev/fdt/ssdfb.c sys/dev/fdt/ssdfb.c
index 6a172850b2b..d81dab9b38b 100644
--- sys/dev/fdt/ssdfb.c
+++ sys/dev/fdt/ssdfb.c
@@ -119,7 +119,6 @@ void	 ssdfb_write_command(struct ssdfb_softc *, char *, size_t);
 void	 ssdfb_write_data(struct ssdfb_softc *, char *, size_t);
 
 void	 ssdfb_init(struct ssdfb_softc *);
-void	 ssdfb_update(void *);
 
 void	 ssdfb_partial(struct ssdfb_softc *, uint32_t, uint32_t,
 	    uint32_t, uint32_t);
diff --git sys/dev/fdt/sximmc.c sys/dev/fdt/sximmc.c
index 21dd9a77a81..803e8fa63c4 100644
--- sys/dev/fdt/sximmc.c
+++ sys/dev/fdt/sximmc.c
@@ -214,7 +214,6 @@ int	sximmc_host_reset(sdmmc_chipset_handle_t);
 uint32_t sximmc_host_ocr(sdmmc_chipset_handle_t);
 int	sximmc_host_maxblklen(sdmmc_chipset_handle_t);
 int	sximmc_card_detect(sdmmc_chipset_handle_t);
-int	sximmc_write_protect(sdmmc_chipset_handle_t);
 int	sximmc_bus_power(sdmmc_chipset_handle_t, uint32_t);
 int	sximmc_bus_clock(sdmmc_chipset_handle_t, int, int);
 int	sximmc_bus_width(sdmmc_chipset_handle_t, int);
diff --git sys/dev/gpio/gpiodcf.c sys/dev/gpio/gpiodcf.c
index bc83c70e48f..58558197530 100644
--- sys/dev/gpio/gpiodcf.c
+++ sys/dev/gpio/gpiodcf.c
@@ -89,7 +89,6 @@ struct gpiodcf_softc {
 #define	T_WARN		300000	/* degrade sensor status to warning (5min) */
 #define	T_CRIT		900000	/* degrade sensor status to critical (15min) */
 
-void	gpiodcf_intr(void *);
 void	gpiodcf_probe(void *);
 void	gpiodcf_bv_probe(void *);
 void	gpiodcf_mg_probe(void *);
diff --git sys/dev/i2c/ietp.h sys/dev/i2c/ietp.h
index c0ba21632b3..e9c634883b7 100644
--- sys/dev/i2c/ietp.h
+++ sys/dev/i2c/ietp.h
@@ -59,8 +59,6 @@ struct ietp_softc {
 	bool		is_clickpad;
 };
 
-int ietp_open(struct ietp_softc *);
-void ietp_close(struct ietp_softc *);
 int ietp_ioctl(void *, u_long, caddr_t, int, struct proc *);
 int ietp_enable(void *dev);
 void ietp_disable(void *dev);
diff --git sys/dev/i2c/imt.c sys/dev/i2c/imt.c
index 5bd3894898f..8f493f06fa3 100644
--- sys/dev/i2c/imt.c
+++ sys/dev/i2c/imt.c
@@ -45,7 +45,6 @@ struct imt_softc {
 };
 
 int	imt_enable(void *);
-int	imt_open(struct ihidev *);
 void	imt_intr(struct ihidev *, void *, u_int);
 void	imt_disable(void *);
 int	imt_ioctl(void *, u_long, caddr_t, int, struct proc *);
diff --git sys/dev/i2c/pca9548.c sys/dev/i2c/pca9548.c
index c28717a4d9c..d9f3e2d8376 100644
--- sys/dev/i2c/pca9548.c
+++ sys/dev/i2c/pca9548.c
@@ -93,7 +93,6 @@ void	pcamux_attach_acpi(struct pcamux_softc *, struct i2c_attach_args *);
 int	pcamux_attach_acpi_mux(struct aml_node *, void *);
 void	pcamux_acpi_bus_scan(struct device *,
 	    struct i2cbus_attach_args *, void *);
-int	pcamux_acpi_found_channel(struct aml_node *, void *);
 int	pcamux_acpi_found_hid(struct aml_node *, void *);
 int	pcamux_acpi_parse_crs(int, union acpi_resource *, void *);
 #endif
diff --git sys/dev/ic/anvar.h sys/dev/ic/anvar.h
index 71e97ac4032..55696d1961d 100644
--- sys/dev/ic/anvar.h
+++ sys/dev/ic/anvar.h
@@ -161,8 +161,6 @@ struct an_softc	{
 
 int	an_attach(struct an_softc *);
 int	an_detach(struct an_softc *);
-int	an_activate(struct device *, int);
-void	an_power(int, void *);
 int	an_intr(void *);
 int	an_init(struct ifnet *);
 void	an_stop(struct ifnet *, int);
diff --git sys/dev/ic/atw.c sys/dev/ic/atw.c
index 1013c861b05..9281f9ac38b 100644
--- sys/dev/ic/atw.c
+++ sys/dev/ic/atw.c
@@ -163,10 +163,6 @@ void atw_si4126_print(struct atw_softc *);
 #define	DPRINTF3(sc, x)	/* nothing */
 #endif
 
-#ifdef ATW_STATS
-void	atw_print_stats(struct atw_softc *);
-#endif
-
 const char *atw_printmac(u_int8_t);
 
 /* ifnet methods */
diff --git sys/dev/ic/com.c sys/dev/ic/com.c
index 7d1401e252c..c0ee3c6e8b4 100644
--- sys/dev/ic/com.c
+++ sys/dev/ic/com.c
@@ -94,7 +94,6 @@ static u_char tiocm_xxx2mcr(int);
 
 void	compwroff(struct com_softc *);
 void	cominit(bus_space_tag_t, bus_space_handle_t, int, int);
-int	com_is_console(bus_space_tag_t, bus_addr_t);
 
 struct cfdriver com_cd = {
 	NULL, "com", DV_TTY
diff --git sys/dev/ic/dc.c sys/dev/ic/dc.c
index 46fb14693d2..609fdbadce1 100644
--- sys/dev/ic/dc.c
+++ sys/dev/ic/dc.c
@@ -134,7 +134,6 @@
 #endif
 
 int dc_intr(void *);
-struct dc_type *dc_devtype(void *);
 int dc_newbuf(struct dc_softc *, int, struct mbuf *);
 int dc_encap(struct dc_softc *, bus_dmamap_t, struct mbuf *, u_int32_t *);
 
diff --git sys/dev/ic/gemvar.h sys/dev/ic/gemvar.h
index 14c01e89723..ef8fb47eee3 100644
--- sys/dev/ic/gemvar.h
+++ sys/dev/ic/gemvar.h
@@ -272,15 +272,7 @@ do {									\
 } while (0)
 
 #ifdef _KERNEL
-void	gem_attach(struct gem_softc *, const u_int8_t *);
-int	gem_activate(struct device *, int);
-int	gem_detach(struct gem_softc *);
 int	gem_intr(void *);
-int	gem_read_srom(struct gem_softc *);
-int	gem_srom_crcok(const u_int8_t *);
-int	gem_isv_srom(const u_int8_t *);
-int	gem_isv_srom_enaddr(struct gem_softc *, u_int8_t *);
-int	gem_parse_old_srom(struct gem_softc *, u_int8_t *);
 
 int	gem_mediachange(struct ifnet *);
 void	gem_mediastatus(struct ifnet *, struct ifmediareq *);
diff --git sys/dev/ic/qwxvar.h sys/dev/ic/qwxvar.h
index 6ee2012ab05..9caccf82402 100644
--- sys/dev/ic/qwxvar.h
+++ sys/dev/ic/qwxvar.h
@@ -807,8 +807,6 @@ enum hal_ce_desc {
 	HAL_CE_DESC_DST_STATUS,
 };
 
-void qwx_ce_byte_swap(void *mem, uint32_t len);
-
 struct ce_ie_addr {
 	uint32_t ie1_reg_addr;
 	uint32_t ie2_reg_addr;
diff --git sys/dev/ic/rtl81x9reg.h sys/dev/ic/rtl81x9reg.h
index f8d1b13729a..26193e035c2 100644
--- sys/dev/ic/rtl81x9reg.h
+++ sys/dev/ic/rtl81x9reg.h
@@ -1091,6 +1091,5 @@ struct rl_softc {
 
 extern int rl_attach(struct rl_softc *);
 extern int rl_intr(void *);
-extern void rl_setmulti(struct rl_softc *);
 int rl_detach(struct rl_softc *);
 int rl_activate(struct device *, int);
diff --git sys/dev/ic/rtwvar.h sys/dev/ic/rtwvar.h
index 1e9e13367da..441eb8007fa 100644
--- sys/dev/ic/rtwvar.h
+++ sys/dev/ic/rtwvar.h
@@ -448,7 +448,6 @@ void rtw_disable(struct rtw_softc *);
 int rtw_enable(struct rtw_softc *);
 
 int rtw_activate(struct device *, int);
-void rtw_shutdown(void *);
 
 const char *rtw_pwrstate_string(enum rtw_pwrstate);
 
diff --git sys/dev/ic/siopvar.h sys/dev/ic/siopvar.h
index f8c7b5802b7..3bd872957d1 100644
--- sys/dev/ic/siopvar.h
+++ sys/dev/ic/siopvar.h
@@ -137,4 +137,3 @@ struct siop_softc {
 void    siop_attach(struct siop_softc *);
 int	siop_intr(void *);
 void	siop_add_dev(struct siop_softc *, int, int);
-void	siop_del_dev(struct siop_softc *, int, int);
diff --git sys/dev/ic/smc91cxx.c sys/dev/ic/smc91cxx.c
index 814c1e370ba..14c9aed5532 100644
--- sys/dev/ic/smc91cxx.c
+++ sys/dev/ic/smc91cxx.c
@@ -177,7 +177,6 @@ int	smc91cxx_set_media(struct smc91cxx_softc *, uint64_t);
 void	smc91cxx_read(struct smc91cxx_softc *);
 void	smc91cxx_reset(struct smc91cxx_softc *);
 void	smc91cxx_start(struct ifnet *);
-void	smc91cxx_resume(struct smc91cxx_softc *);
 void	smc91cxx_watchdog(struct ifnet *);
 int	smc91cxx_ioctl(struct ifnet *, u_long, caddr_t);
 
diff --git sys/dev/ic/trm.c sys/dev/ic/trm.c
index 6fe0e587423..303ca7f1895 100644
--- sys/dev/ic/trm.c
+++ sys/dev/ic/trm.c
@@ -61,8 +61,6 @@
 
 /* #define TRM_DEBUG0 */
 
-void	trm_initSRB(struct trm_scsi_req_q *);
-
 void	trm_check_eeprom(struct trm_adapter_nvram *, bus_space_tag_t, bus_space_handle_t);
 void	trm_read_all    (struct trm_adapter_nvram *, bus_space_tag_t, bus_space_handle_t);
 void	trm_write_all   (struct trm_adapter_nvram *, bus_space_tag_t, bus_space_handle_t);
diff --git sys/dev/isa/fd.c sys/dev/isa/fd.c
index 644a51ba924..c53aba7d4e4 100644
--- sys/dev/isa/fd.c
+++ sys/dev/isa/fd.c
@@ -138,7 +138,6 @@ struct cfdriver fd_cd = {
 };
 
 int fdgetdisklabel(dev_t, struct fd_softc *, struct disklabel *, int);
-int fd_get_parms(struct fd_softc *);
 void fdstrategy(struct buf *);
 void fdstart(struct fd_softc *);
 int fdintr(struct fdc_softc *);
diff --git sys/dev/midi.c sys/dev/midi.c
index 85848b96a17..8bdc61fe40c 100644
--- sys/dev/midi.c
+++ sys/dev/midi.c
@@ -50,7 +50,6 @@ void	midi_timeout(void *);
 void	midi_out_start(struct midi_softc *);
 void	midi_out_stop(struct midi_softc *);
 void	midi_out_do(struct midi_softc *);
-void	midi_attach(struct midi_softc *, struct device *);
 
 
 const struct cfattach midi_ca = {
diff --git sys/dev/mii/brswphy.c sys/dev/mii/brswphy.c
index eff0388d9c4..b2c836c788b 100644
--- sys/dev/mii/brswphy.c
+++ sys/dev/mii/brswphy.c
@@ -160,7 +160,6 @@ struct cfdriver brswphy_cd = {
 
 int	brswphy_service(struct mii_softc *, struct mii_data *, int);
 void	brswphy_status(struct mii_softc *);
-void	brswphy_reset(struct mii_softc *);
 
 const struct mii_phy_funcs brswphy_funcs = {
 	brswphy_service, brswphy_status, mii_phy_reset,
diff --git sys/dev/mii/tqphy.c sys/dev/mii/tqphy.c
index d18be6e1c3b..65aa6849b0f 100644
--- sys/dev/mii/tqphy.c
+++ sys/dev/mii/tqphy.c
@@ -78,7 +78,6 @@
 
 int	tqphymatch(struct device *, void *, void *);
 void	tqphyattach(struct device *, struct device *, void *);
-int	tqphydetach(struct device *, int);
 
 const struct cfattach tqphy_ca = {
 	sizeof(struct mii_softc), tqphymatch, tqphyattach, mii_phy_detach
diff --git sys/dev/ofw/openfirm.h sys/dev/ofw/openfirm.h
index 54ccdf3d37e..c78b13ca740 100644
--- sys/dev/ofw/openfirm.h
+++ sys/dev/ofw/openfirm.h
@@ -79,12 +79,6 @@ int OF_getnodebyname(int, const char *);
 int OF_getnodebyphandle(uint32_t);
 int OF_getindex(int, const char *, const char *);
 
-/*
- * Some generic routines for OpenFirmware handling.
- */
-int ofnmmatch(char *cp1, char *cp2);
-void ofw_intr_establish(void);
-
 /*
  * Generic OpenFirmware probe argument.
  * This is how all probe structures must start
diff --git sys/dev/pci/agp_i810.c sys/dev/pci/agp_i810.c
index f0863f0b491..3899b4cf450 100644
--- sys/dev/pci/agp_i810.c
+++ sys/dev/pci/agp_i810.c
@@ -104,9 +104,6 @@ int	agp_i810_enable(void *, u_int32_t mode);
 void	intagp_write_gtt(struct agp_i810_softc *, bus_size_t, paddr_t);
 int	intagp_gmch_match(struct pci_attach_args *);
 
-extern void	intagp_dma_sync(bus_dma_tag_t, bus_dmamap_t,
-		    bus_addr_t, bus_size_t, int);
-
 const struct cfattach intagp_ca = {
 	sizeof(struct agp_i810_softc), agp_i810_probe, agp_i810_attach,
 	NULL, agp_i810_activate,
diff --git sys/dev/pci/agpvar.h sys/dev/pci/agpvar.h
index 522d1dd1b6b..6aa76f82038 100644
--- sys/dev/pci/agpvar.h
+++ sys/dev/pci/agpvar.h
@@ -190,10 +190,4 @@ int	 agp_release(void *);
  */
 int	 agp_enable(void *, u_int32_t);
 
-/*
- * Retrieve information about a memory block allocated with
- * agp_alloc_memory().
- */
-void	 agp_memory_info(void *, void *, struct agp_memory_info *);
-
 #endif /* !_PCI_AGPVAR_H_ */
diff --git sys/dev/pci/auacer.c sys/dev/pci/auacer.c
index 17964f78aeb..051e66a45de 100644
--- sys/dev/pci/auacer.c
+++ sys/dev/pci/auacer.c
@@ -174,7 +174,6 @@ int	auacer_allocmem(struct auacer_softc *, size_t, size_t,
 int	auacer_freemem(struct auacer_softc *, struct auacer_dma *);
 
 int	auacer_set_rate(struct auacer_softc *, int, u_long);
-void	auacer_finish_attach(struct device *);
 
 static	void auacer_reset(struct auacer_softc *sc);
 
diff --git sys/dev/pci/auglx.c sys/dev/pci/auglx.c
index 56507932fbf..14b5fd1d763 100644
--- sys/dev/pci/auglx.c
+++ sys/dev/pci/auglx.c
@@ -227,7 +227,6 @@ int auglx_trigger_output(void *, void *, void *, int, void (*)(void *),
     void *, struct audio_params *);
 int auglx_trigger_input(void *, void *, void *, int, void (*)(void *),
     void *, struct audio_params *);
-int auglx_alloc_cdata(struct auglx_softc *);
 int auglx_alloc_prd(struct auglx_softc *, size_t, struct auglx_ring *);
 void auglx_free_prd(struct auglx_softc *sc, struct auglx_ring *bm);
 int auglx_allocmem(struct auglx_softc *, size_t, size_t, struct auglx_dma *);
diff --git sys/dev/pci/fms.c sys/dev/pci/fms.c
index f3238126d20..eba126f0e3f 100644
--- sys/dev/pci/fms.c
+++ sys/dev/pci/fms.c
@@ -121,7 +121,6 @@ void	fms_reset_codec(void *);
 
 int	fms_allocmem(struct fms_softc *, size_t, size_t,
 			  struct fms_dma *);
-int	fms_freemem(struct fms_softc *, struct fms_dma *);
 
 int
 fms_match(struct device *parent, void *match, void *aux)
diff --git sys/dev/pci/gcu.c sys/dev/pci/gcu.c
index 70b9d6ea420..4300bfe1692 100644
--- sys/dev/pci/gcu.c
+++ sys/dev/pci/gcu.c
@@ -32,7 +32,6 @@
 
 int gcu_probe(struct device *, void *, void *);
 void gcu_attach(struct device *, struct device *, void *);
-int gcu_detach(struct device *, int);
 
 const struct pci_matchid gcu_devices[] = {
 	{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_EP80579_GCU }
diff --git sys/dev/pci/i82365_pci.c sys/dev/pci/i82365_pci.c
index 5072dd81a3a..7271bdc7085 100644
--- sys/dev/pci/i82365_pci.c
+++ sys/dev/pci/i82365_pci.c
@@ -94,8 +94,6 @@ pcic_pci_match(struct device *parent, void *match, void *aux)
 	return (0);
 }
 
-void pcic_isa_config_interrupts(struct device *);
-
 void
 pcic_pci_attach(struct device *parent, struct device *self, void *aux)
 {
diff --git sys/dev/pci/if_aq_pci.c sys/dev/pci/if_aq_pci.c
index 6896270ac42..eae199eba17 100644
--- sys/dev/pci/if_aq_pci.c
+++ sys/dev/pci/if_aq_pci.c
@@ -1106,7 +1106,6 @@ const struct aq_product {
 
 int	aq_match(struct device *, void *, void *);
 void	aq_attach(struct device *, struct device *, void *);
-int	aq_detach(struct device *, int);
 int	aq_activate(struct device *, int);
 int	aq_intr(void *);
 int	aq_intr_link(void *);
@@ -1115,7 +1114,6 @@ int	aq_init_rss(struct aq_softc *);
 int	aq_hw_reset(struct aq_softc *);
 int	aq_hw_init(struct aq_softc *, int, int);
 void	aq_hw_qos_set(struct aq_softc *);
-void	aq_l3_filter_set(struct aq_softc *);
 void	aq_hw_init_tx_path(struct aq_softc *);
 void	aq_hw_init_rx_path(struct aq_softc *);
 int	aq_set_mac_addr(struct aq_softc *, int, uint8_t *);
@@ -1156,7 +1154,6 @@ static inline unsigned int aq_rx_fill_slots(struct aq_softc *,
 
 int	aq_dmamem_alloc(struct aq_softc *, struct aq_dmamem *,
 	    bus_size_t, u_int);
-void	aq_dmamem_zero(struct aq_dmamem *);
 void	aq_dmamem_free(struct aq_softc *, struct aq_dmamem *);
 
 int	aq1_get_mac_addr(struct aq_softc *);
diff --git sys/dev/pci/if_em.c sys/dev/pci/if_em.c
index f9b85546e26..b09f925bba3 100644
--- sys/dev/pci/if_em.c
+++ sys/dev/pci/if_em.c
@@ -277,7 +277,6 @@ void em_enable_intr(struct em_softc *);
 void em_disable_intr(struct em_softc *);
 void em_free_transmit_structures(struct em_softc *);
 void em_free_receive_structures(struct em_softc *);
-void em_update_stats_counters(struct em_softc *);
 void em_disable_aspm(struct em_softc *);
 void em_txeof(struct em_queue *);
 int  em_allocate_receive_structures(struct em_softc *);
diff --git sys/dev/pci/if_em_hw.h sys/dev/pci/if_em_hw.h
index 614699f6265..a59bf3a33be 100644
--- sys/dev/pci/if_em_hw.h
+++ sys/dev/pci/if_em_hw.h
@@ -343,7 +343,6 @@ struct em_softc;
 int32_t em_reset_hw(struct em_hw *hw);
 int32_t em_init_hw(struct em_softc *sc);
 int32_t em_set_mac_type(struct em_hw *hw);
-int em_max_queues(struct em_hw *hw);
 void em_set_media_type(struct em_hw *hw);
 
 /* Link Configuration */
@@ -361,9 +360,6 @@ int32_t em_read_phy_reg(struct em_hw *hw, uint32_t reg_addr, uint16_t *phy_data)
 int32_t em_write_phy_reg(struct em_hw *hw, uint32_t reg_addr, uint16_t data);
 int32_t em_phy_hw_reset(struct em_hw *hw);
 int32_t em_phy_reset(struct em_hw *hw);
-int32_t em_phy_get_info(struct em_hw *hw, struct em_phy_info *phy_info);
-int32_t em_validate_mdi_setting(struct em_hw *hw);
-void em_phy_powerdown_workaround(struct em_hw *hw);
 int em_sgmii_uses_mdio_82575(struct em_hw *);
 int32_t em_read_phy_reg_i2c(struct em_hw *, uint32_t, uint16_t *);
 int32_t em_write_phy_reg_i2c(struct em_hw *, uint32_t, uint16_t);
@@ -372,9 +368,6 @@ int32_t em_read_sfp_data_byte(struct em_hw *, uint16_t, uint8_t *);
 /* EEPROM Functions */
 int32_t em_init_eeprom_params(struct em_hw *hw);
 
-/* MNG HOST IF functions */
-uint32_t em_enable_mng_pass_thru(struct em_hw *hw);
-
 #define E1000_MNG_DHCP_TX_PAYLOAD_CMD   64
 #define E1000_HI_MAX_MNG_DATA_LENGTH    0x6F8   /* Host Interface data length */
 
@@ -432,21 +425,11 @@ void em_mc_addr_list_update(struct em_hw *hw, uint8_t * mc_addr_list, uint32_t m
 uint32_t em_hash_mc_addr(struct em_hw *hw, uint8_t *mc_addr);
 void em_mta_set(struct em_hw *hw, uint32_t hash_value);
 void em_rar_set(struct em_hw *hw, uint8_t *mc_addr, uint32_t rar_index);
-void em_write_vfta(struct em_hw *hw, uint32_t offset, uint32_t value);
-
-/* LED functions */
-int32_t em_setup_led(struct em_hw *hw);
-int32_t em_cleanup_led(struct em_hw *hw);
-int32_t em_led_on(struct em_hw *hw);
-int32_t em_led_off(struct em_hw *hw);
-int32_t em_blink_led_start(struct em_hw *hw);
 
 /* Adaptive IFS Functions */
 
 /* Everything else */
 void em_clear_hw_cntrs(struct em_hw *hw);
-void em_reset_adaptive(struct em_hw *hw);
-void em_update_adaptive(struct em_hw *hw);
 void em_get_bus_info(struct em_hw *hw);
 void em_pci_set_mwi(struct em_hw *hw);
 void em_pci_clear_mwi(struct em_hw *hw);
diff --git sys/dev/pci/if_iwn.c sys/dev/pci/if_iwn.c
index 10813741fa9..eae47cfd6cc 100644
--- sys/dev/pci/if_iwn.c
+++ sys/dev/pci/if_iwn.c
@@ -230,7 +230,6 @@ void		iwn_tune_sensitivity(struct iwn_softc *,
 		    const struct iwn_rx_stats *);
 int		iwn_send_sensitivity(struct iwn_softc *);
 int		iwn_set_pslevel(struct iwn_softc *, int, int, int);
-int		iwn_send_temperature_offset(struct iwn_softc *);
 int		iwn_send_btcoex(struct iwn_softc *);
 int		iwn_send_advanced_btcoex(struct iwn_softc *);
 int		iwn5000_runtime_calib(struct iwn_softc *);
diff --git sys/dev/pci/if_iwx.c sys/dev/pci/if_iwx.c
index 15eea66717c..825b980de93 100644
--- sys/dev/pci/if_iwx.c
+++ sys/dev/pci/if_iwx.c
@@ -453,7 +453,6 @@ uint16_t iwx_rs_vht_rates(struct iwx_softc *, struct ieee80211_node *, int);
 int	iwx_rs_init_v3(struct iwx_softc *, struct iwx_node *);
 int	iwx_rs_init_v4(struct iwx_softc *, struct iwx_node *);
 int	iwx_rs_init(struct iwx_softc *, struct iwx_node *);
-int	iwx_enable_data_tx_queues(struct iwx_softc *);
 int	iwx_phy_send_rlc(struct iwx_softc *, struct iwx_phy_ctxt *,
 	    uint8_t, uint8_t);
 int	iwx_phy_ctxt_update(struct iwx_softc *, struct iwx_phy_ctxt *,
diff --git sys/dev/pci/if_ix.c sys/dev/pci/if_ix.c
index 01d0a2528c6..64c2edca1cf 100644
--- sys/dev/pci/if_ix.c
+++ sys/dev/pci/if_ix.c
@@ -125,7 +125,6 @@ int	ixgbe_allocate_msix(struct ix_softc *);
 void	ixgbe_setup_msix(struct ix_softc *);
 int	ixgbe_allocate_queues(struct ix_softc *);
 void	ixgbe_free_pci_resources(struct ix_softc *);
-void	ixgbe_local_timer(void *);
 void	ixgbe_setup_interface(struct ix_softc *);
 void	ixgbe_config_gpie(struct ix_softc *);
 void	ixgbe_config_delay_values(struct ix_softc *);
@@ -182,7 +181,6 @@ int	ixgbe_legacy_intr(void *);
 void	ixgbe_enable_queue(struct ix_softc *, uint32_t);
 void	ixgbe_enable_queues(struct ix_softc *);
 void	ixgbe_disable_queue(struct ix_softc *, uint32_t);
-void	ixgbe_rearm_queue(struct ix_softc *, uint32_t);
 
 /* MSI-X (multiple vectors interrupt handlers)  */
 int	ixgbe_link_intr(void *);
diff --git sys/dev/pci/if_vmx.c sys/dev/pci/if_vmx.c
index 87e9c926c21..d701be79857 100644
--- sys/dev/pci/if_vmx.c
+++ sys/dev/pci/if_vmx.c
@@ -209,8 +209,6 @@ void vmxnet3_reset(struct vmxnet3_softc *);
 int vmxnet3_init(struct vmxnet3_softc *);
 int vmxnet3_ioctl(struct ifnet *, u_long, caddr_t);
 void vmxnet3_start(struct ifqueue *);
-int vmxnet3_load_mbuf(struct vmxnet3_softc *, struct vmxnet3_txring *,
-    struct mbuf **);
 void vmxnet3_watchdog(struct ifnet *);
 void vmxnet3_media_status(struct ifnet *, struct ifmediareq *);
 int vmxnet3_media_change(struct ifnet *);
diff --git sys/dev/pci/if_wb.c sys/dev/pci/if_wb.c
index a8cc5d19d9c..59d942360ed 100644
--- sys/dev/pci/if_wb.c
+++ sys/dev/pci/if_wb.c
@@ -127,7 +127,6 @@
 int wb_probe(struct device *, void *, void *);
 void wb_attach(struct device *, struct device *, void *);
 
-void wb_bfree(caddr_t, u_int, void *);
 void wb_newbuf(struct wb_softc *, struct wb_chain_onefrag *);
 int wb_encap(struct wb_softc *, struct wb_chain *, struct mbuf *);
 
diff --git sys/dev/pci/igc_base.h sys/dev/pci/igc_base.h
index a79dc94234e..ddfcb07ed3d 100644
--- sys/dev/pci/igc_base.h
+++ sys/dev/pci/igc_base.h
@@ -15,7 +15,6 @@ struct igc_hw;
 
 int		igc_init_hw_base(struct igc_hw *hw);
 void		igc_power_down_phy_copper_base(struct igc_hw *hw);
-extern void	igc_rx_fifo_flush_base(struct igc_hw *hw);
 int		igc_acquire_phy_base(struct igc_hw *hw);
 void		igc_release_phy_base(struct igc_hw *hw);
 
diff --git sys/dev/pci/ixgb_hw.h sys/dev/pci/ixgb_hw.h
index e1da959436f..c70dd1d5474 100644
--- sys/dev/pci/ixgb_hw.h
+++ sys/dev/pci/ixgb_hw.h
@@ -815,7 +815,6 @@ struct ixgb_hw_stats {
 /* Function Prototypes */
 extern boolean_t ixgb_adapter_stop(struct ixgb_hw *hw);
 extern boolean_t ixgb_init_hw(struct ixgb_hw *hw);
-extern boolean_t ixgb_adapter_start(struct ixgb_hw *hw);
 extern void ixgb_check_for_link(struct ixgb_hw *hw);
 extern boolean_t ixgb_check_for_bad_link(struct ixgb_hw *hw);
 extern void ixgb_rar_set(struct ixgb_hw *hw, uint8_t *addr, uint32_t index);
diff --git sys/dev/pci/ixgbe_82598.c sys/dev/pci/ixgbe_82598.c
index cb23bbfb420..a22c7b60276 100644
--- sys/dev/pci/ixgbe_82598.c
+++ sys/dev/pci/ixgbe_82598.c
@@ -46,7 +46,6 @@
 #define IXGBE_82598_VFT_TBL_SIZE 128
 #define IXGBE_82598_RX_PB_SIZE   512
 
-uint32_t ixgbe_get_pcie_msix_count_82598(struct ixgbe_hw *hw);
 int32_t ixgbe_get_link_capabilities_82598(struct ixgbe_hw *hw,
 					  ixgbe_link_speed *speed,
 					  bool *autoneg);
diff --git sys/dev/pci/ixgbe_x550.c sys/dev/pci/ixgbe_x550.c
index 96fab354200..792a24a4971 100644
--- sys/dev/pci/ixgbe_x550.c
+++ sys/dev/pci/ixgbe_x550.c
@@ -109,9 +109,7 @@ int32_t ixgbe_read_phy_reg_x550a(struct ixgbe_hw *hw, uint32_t reg_addr,
 			       uint32_t device_type, uint16_t *phy_data);
 int32_t ixgbe_write_phy_reg_x550a(struct ixgbe_hw *hw, uint32_t reg_addr,
 				uint32_t device_type, uint16_t phy_data);
-int32_t ixgbe_setup_fc_fiber_x550em_a(struct ixgbe_hw *hw);
 int32_t ixgbe_setup_fc_backplane_x550em_a(struct ixgbe_hw *hw);
-int32_t ixgbe_setup_fc_sgmii_x550em_a(struct ixgbe_hw *hw);
 void ixgbe_fc_autoneg_fiber_x550em_a(struct ixgbe_hw *hw);
 void ixgbe_fc_autoneg_backplane_x550em_a(struct ixgbe_hw *hw);
 void ixgbe_fc_autoneg_sgmii_x550em_a(struct ixgbe_hw *hw);
diff --git sys/dev/pci/neo.c sys/dev/pci/neo.c
index d3258577fbd..20024f5f69f 100644
--- sys/dev/pci/neo.c
+++ sys/dev/pci/neo.c
@@ -199,7 +199,6 @@ int	neo_query_devinfo(void *, mixer_devinfo_t *);
 void   *neo_malloc(void *, int, size_t, int, int);
 void	neo_free(void *, void *, int);
 size_t	neo_round_buffersize(void *, int, size_t);
-void	neo_set_mixer(struct neo_softc *sc, int a, int d);
 
 struct cfdriver neo_cd = {
 	NULL, "neo", DV_DULL
diff --git sys/dev/pci/pccbb.c sys/dev/pci/pccbb.c
index 681e35a51cd..d354765c1c6 100644
--- sys/dev/pci/pccbb.c
+++ sys/dev/pci/pccbb.c
@@ -106,7 +106,6 @@ void	pccbb_pcmcia_attach_setup(struct pccbb_softc *,
 #if 0
 void	pccbb_pcmcia_attach_card(struct pcic_handle *);
 void	pccbb_pcmcia_detach_card(struct pcic_handle *, int);
-void	pccbb_pcmcia_deactivate_card(struct pcic_handle *);
 #endif
 
 int	pccbb_ctrl(cardbus_chipset_tag_t, int);
@@ -166,7 +165,6 @@ int	pccbb_winlist_delete(struct pccbb_win_chain_head *,
     bus_space_handle_t, bus_size_t);
 void	pccbb_winset(bus_addr_t align, struct pccbb_softc *,
     bus_space_tag_t);
-void	pccbb_winlist_show(struct pccbb_win_chain *);
 
 /* for config_defer */
 void	pccbb_pci_callback(struct device *);
diff --git sys/dev/pci/pciide.c sys/dev/pci/pciide.c
index 4f65dc98ae6..de4981b4e91 100644
--- sys/dev/pci/pciide.c
+++ sys/dev/pci/pciide.c
@@ -240,9 +240,6 @@ int  pdc205xx_pci_intr(void *);
 void pdc205xx_do_reset(struct channel_softc *);
 void pdc205xx_drv_probe(struct channel_softc *);
 
-void opti_chip_map(struct pciide_softc *, struct pci_attach_args *);
-void opti_setup_channel(struct channel_softc *);
-
 void hpt_chip_map(struct pciide_softc *, struct pci_attach_args *);
 void hpt_setup_channel(struct channel_softc *);
 int  hpt_pci_intr(void *);
diff --git sys/dev/pci/pciidevar.h sys/dev/pci/pciidevar.h
index 2a3142a0937..a8977ff8a91 100644
--- sys/dev/pci/pciidevar.h
+++ sys/dev/pci/pciidevar.h
@@ -179,8 +179,6 @@ int	 pciide_unmapregs_compat(struct pciide_softc *,
 	     struct pciide_channel *);
 int	 pciide_unmapregs_native(struct pciide_softc *,
 	     struct pciide_channel *);
-int	 pciide_dma_table_free(struct pciide_softc *, int, int);
-void	 pciide_channel_dma_free(struct pciide_channel *);
 
 /*
  * Functions defined by machine-dependent code.
diff --git sys/dev/pci/pcivar.h sys/dev/pci/pcivar.h
index a595e919ebf..48ef016d0eb 100644
--- sys/dev/pci/pcivar.h
+++ sys/dev/pci/pcivar.h
@@ -277,7 +277,6 @@ int	pci_detach_devices(struct pci_softc *, int);
 void	pci_devinfo(pcireg_t, pcireg_t, int, char *, size_t);
 const struct pci_quirkdata *
 	pci_lookup_quirkdata(pci_vendor_id_t, pci_product_id_t);
-void	pciagp_set_pchb(struct pci_attach_args *);
 
 #endif /* _KERNEL */
 #endif /* _DEV_PCI_PCIVAR_H_ */
diff --git sys/dev/pci/ufshci_pci.c sys/dev/pci/ufshci_pci.c
index e5e6c985925..219c85e7e1f 100644
--- sys/dev/pci/ufshci_pci.c
+++ sys/dev/pci/ufshci_pci.c
@@ -41,7 +41,6 @@ struct ufshci_pci_softc {
 int	ufshci_pci_match(struct device *, void *, void *);
 void	ufshci_pci_attach(struct device *, struct device *, void *);
 int	ufshci_pci_detach(struct device *, int);
-int	ufshci_pci_activate(struct device *, int);
 
 const struct cfattach ufshci_pci_ca = {
 	sizeof(struct ufshci_pci_softc),
diff --git sys/dev/pcmcia/com_pcmcia.c sys/dev/pcmcia/com_pcmcia.c
index fac4aafc96b..3ba4c5fd9c1 100644
--- sys/dev/pcmcia/com_pcmcia.c
+++ sys/dev/pcmcia/com_pcmcia.c
@@ -125,7 +125,6 @@ struct com_pcmcia_product {
 int com_pcmcia_match(struct device *, void *, void *);
 void com_pcmcia_attach(struct device *, struct device *, void *);
 int com_pcmcia_detach(struct device *, int);
-void com_pcmcia_cleanup(void *);
 int com_pcmcia_activate(struct device *, int);
 
 int com_pcmcia_enable(struct com_softc *);
diff --git sys/dev/pcmcia/pcmcia.c sys/dev/pcmcia/pcmcia.c
index 9e5d0f95c1e..11b97318dbb 100644
--- sys/dev/pcmcia/pcmcia.c
+++ sys/dev/pcmcia/pcmcia.c
@@ -56,7 +56,6 @@ int	pcmcia_submatch(struct device *, void *, void *);
 void	pcmcia_attach(struct device *, struct device *, void *);
 int	pcmcia_activate(struct device *, int);
 int	pcmcia_print(void *, const char *);
-void	pcmcia_card_detach_notify(struct device *, void *);
 int	pcmcia_card_intr(void *);
 
 struct cfdriver pcmcia_cd = {
diff --git sys/dev/pv/viogpu.c sys/dev/pv/viogpu.c
index d0af88f66f1..e0c2d63d69c 100644
--- sys/dev/pv/viogpu.c
+++ sys/dev/pv/viogpu.c
@@ -62,8 +62,6 @@ int	viogpu_alloc_screen(void *, const struct wsscreen_descr *, void **,
 	    int *, int *, uint32_t *);
 int	viogpu_show_screen(void *, void *, int, void (*)(void *, int, int),
 	    void *);
-void	viogpu_enter_ddb(void *, void *);
-void	viogpu_doswitch(void *);
 
 #define VIOGPU_HEIGHT		160
 #define VIOGPU_WIDTH		160
diff --git sys/dev/pv/virtiovar.h sys/dev/pv/virtiovar.h
index d12cb2c59b8..5ea77a3d965 100644
--- sys/dev/pv/virtiovar.h
+++ sys/dev/pv/virtiovar.h
@@ -231,7 +231,6 @@ void virtio_enqueue_trim(struct virtqueue*, int, int);
 int virtio_dequeue(struct virtio_softc*, struct virtqueue*, int *, int *);
 int virtio_dequeue_commit(struct virtqueue*, int);
 
-int virtio_intr(void *arg);
 int virtio_check_vqs(struct virtio_softc *);
 int virtio_check_vq(struct virtio_softc *, struct virtqueue *);
 void virtio_stop_vq_intr(struct virtio_softc *, struct virtqueue *);
diff --git sys/dev/sbus/agten.c sys/dev/sbus/agten.c
index 5fa76a2fa8c..fec6b764605 100644
--- sys/dev/sbus/agten.c
+++ sys/dev/sbus/agten.c
@@ -106,7 +106,6 @@ struct agten_softc {
 
 int agten_ioctl(void *, u_long, caddr_t, int, struct proc *);
 paddr_t agten_mmap(void *, off_t, int);
-void agten_reset(struct agten_softc *);
 void agten_setcolor(void *, u_int, u_int8_t, u_int8_t, u_int8_t);
 
 static __inline__ void ibm561_write(struct agten_softc *, u_int32_t, u_int32_t);
diff --git sys/dev/sbus/be.c sys/dev/sbus/be.c
index e8ca9d2cf40..6b6bd971408 100644
--- sys/dev/sbus/be.c
+++ sys/dev/sbus/be.c
@@ -172,7 +172,6 @@ static int	be_tcvr_read_bit(struct be_softc *, int);
 static void	be_tcvr_write_bit(struct be_softc *, int, int);
 
 void	be_tick(void *);
-void	be_intphy_auto(struct be_softc *);
 void	be_intphy_status(struct be_softc *);
 int	be_intphy_service(struct be_softc *, struct mii_data *, int);
 
diff --git sys/dev/sbus/zx.c sys/dev/sbus/zx.c
index a4969b77de5..681e8dce1f6 100644
--- sys/dev/sbus/zx.c
+++ sys/dev/sbus/zx.c
@@ -151,8 +151,6 @@ void	zx_copyrect(struct rasops_info *, int, int, int, int, int, int);
 int	zx_cross_loadwid(struct zx_softc *, u_int, u_int, u_int);
 int	zx_cross_wait(struct zx_softc *);
 void	zx_fillrect(struct rasops_info *, int, int, int, int, uint32_t, int);
-int	zx_intr(void *);
-void	zx_prom(void *);
 
 int	zx_putchar(void *, int, int, u_int, uint32_t);
 int	zx_copycols(void *, int, int, int, int);
diff --git sys/dev/softraid_raid6.c sys/dev/softraid_raid6.c
index 2b319f75be2..1e2e0270e2d 100644
--- sys/dev/softraid_raid6.c
+++ sys/dev/softraid_raid6.c
@@ -63,7 +63,6 @@ void	sr_raid6_xorp(void *, void *, int);
 void	sr_raid6_xorq(void *, void *, int, int);
 int	sr_raid6_addio(struct sr_workunit *wu, int, daddr_t, long,
 	    void *, int, int, void *, void *, int);
-void	sr_raid6_scrub(struct sr_discipline *);
 int	sr_failio(struct sr_workunit *);
 
 void	gf_init(void);
diff --git sys/dev/usb/ulpt.c sys/dev/usb/ulpt.c
index d9606dc2aa5..f540ca7d35d 100644
--- sys/dev/usb/ulpt.c
+++ sys/dev/usb/ulpt.c
@@ -103,8 +103,6 @@ struct ulpt_softc {
 	struct ulpt_fwdev *sc_fwdev;
 };
 
-void ulpt_disco(void *);
-
 int ulpt_do_write(struct ulpt_softc *, struct uio *uio, int);
 int ulpt_status(struct ulpt_softc *);
 void ulpt_reset(struct ulpt_softc *);
diff --git sys/dev/usb/umt.c sys/dev/usb/umt.c
index 44a903f23c7..6262dddb6c3 100644
--- sys/dev/usb/umt.c
+++ sys/dev/usb/umt.c
@@ -52,7 +52,6 @@ struct umt_softc {
 };
 
 int	umt_enable(void *);
-int	umt_open(struct uhidev *);
 void	umt_intr(struct uhidev *, void *, u_int);
 void	umt_disable(void *);
 int	umt_ioctl(void *, u_long, caddr_t, int, struct proc *);
diff --git sys/dev/vscsi.c sys/dev/vscsi.c
index 53adb499ac7..8e19f738a9c 100644
--- sys/dev/vscsi.c
+++ sys/dev/vscsi.c
@@ -41,7 +41,6 @@
 
 int		vscsi_match(struct device *, void *, void *);
 void		vscsi_attach(struct device *, struct device *, void *);
-void		vscsi_shutdown(void *);
 
 struct vscsi_ccb {
 	TAILQ_ENTRY(vscsi_ccb)	ccb_entry;
diff --git sys/isofs/cd9660/cd9660_node.h sys/isofs/cd9660/cd9660_node.h
index 3da44004424..c819513e22b 100644
--- sys/isofs/cd9660/cd9660_node.h
+++ sys/isofs/cd9660/cd9660_node.h
@@ -103,7 +103,6 @@ int	cd9660_mmap(void *);
 int	cd9660_seek(void *);
 int	cd9660_readdir(void *);
 int	cd9660_readlink(void *);
-int	cd9660_abortop(void *);
 int	cd9660_inactive(void *);
 int	cd9660_reclaim(void *);
 int	cd9660_link(void *);
diff --git sys/msdosfs/msdosfsmount.h sys/msdosfs/msdosfsmount.h
index 23b5a65d208..9c033a88f0b 100644
--- sys/msdosfs/msdosfsmount.h
+++ sys/msdosfs/msdosfsmount.h
@@ -204,7 +204,6 @@ int msdosfs_mount(struct mount *, const char *, void *, struct nameidata *, stru
 int msdosfs_start(struct mount *, int, struct proc *);
 int msdosfs_unmount(struct mount *, int, struct proc *);
 int msdosfs_root(struct mount *, struct vnode **);
-int msdosfs_quotactl(struct mount *, int, uid_t, caddr_t, struct proc *);
 int msdosfs_statfs(struct mount *, struct statfs *, struct proc *);
 int msdosfs_sync(struct mount *, int, int, struct ucred *, struct proc *);
 int msdosfs_fhtovp(struct mount *, struct fid *, struct vnode **);
diff --git sys/net/if_gif.c sys/net/if_gif.c
index ebaa30e7806..3845cd05d64 100644
--- sys/net/if_gif.c
+++ sys/net/if_gif.c
@@ -127,8 +127,6 @@ int	gif_down(struct gif_softc *);
 int	gif_set_tunnel(struct gif_softc *, struct if_laddrreq *);
 int	gif_get_tunnel(struct gif_softc *, struct if_laddrreq *);
 int	gif_del_tunnel(struct gif_softc *);
-int	in_gif_output(struct ifnet *, int, struct mbuf **);
-int	in6_gif_output(struct ifnet *, int, struct mbuf **);
 int	gif_input(struct gif_tunnel *, struct mbuf **, int *, int, int,
 	    uint8_t);
 
diff --git sys/net/if_mpw.c sys/net/if_mpw.c
index 934a757bb41..f1f122a9786 100644
--- sys/net/if_mpw.c
+++ sys/net/if_mpw.c
@@ -17,7 +17,6 @@
  */
 
 #include "bpfilter.h"
-#include "vlan.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -40,10 +39,6 @@
 #include <net/bpf.h>
 #endif /* NBPFILTER */
 
-#if NVLAN > 0
-#include <net/if_vlan_var.h>
-#endif
-
 struct mpw_neighbor {
 	struct shim_hdr		n_rshim;
 	struct sockaddr_storage	n_nexthop;
@@ -75,9 +70,6 @@ int	mpw_ioctl(struct ifnet *, u_long, caddr_t);
 int	mpw_output(struct ifnet *, struct mbuf *, struct sockaddr *,
     struct rtentry *);
 void	mpw_start(struct ifnet *);
-#if NVLAN > 0
-struct	mbuf *mpw_vlan_handle(struct mbuf *, struct mpw_softc *);
-#endif /* NVLAN */
 
 struct if_clone mpw_cloner =
     IF_CLONE_INITIALIZER("mpw", mpw_clone_create, mpw_clone_destroy);
diff --git sys/net/if_pfsync.h sys/net/if_pfsync.h
index 16982cba864..c2e60e8314b 100644
--- sys/net/if_pfsync.h
+++ sys/net/if_pfsync.h
@@ -318,7 +318,6 @@ int			pfsync_sysctl(int *, u_int,  void *, size_t *,
 #define	PFSYNC_SI_CKSUM		0x02
 #define	PFSYNC_SI_ACK		0x04
 #define	PFSYNC_SI_PFSYNC	0x08
-int			pfsync_state_import(struct pfsync_state *, int);
 void			pfsync_state_export(struct pfsync_state *,
 			    struct pf_state *);
 
diff --git sys/net/if_spppsubr.c sys/net/if_spppsubr.c
index fb0efa59247..49e5e5dce0e 100644
--- sys/net/if_spppsubr.c
+++ sys/net/if_spppsubr.c
@@ -234,9 +234,6 @@ void sppp_cp_input(const struct cp *cp, struct sppp *sp,
 			  struct mbuf *m);
 void sppp_cp_send(struct sppp *sp, u_short proto, u_char type,
 			 u_char ident, u_short len, void *data);
-#ifdef notyet
-void sppp_cp_timeout(void *arg);
-#endif
 void sppp_cp_change_state(const struct cp *cp, struct sppp *sp,
 				 int newstate);
 void sppp_auth_send(const struct cp *cp,
diff --git sys/net/if_trunk.h sys/net/if_trunk.h
index fbffffe5fc8..3c048df0847 100644
--- sys/net/if_trunk.h
+++ sys/net/if_trunk.h
@@ -249,7 +249,6 @@ struct trunk_lb {
 	struct trunk_port	*lb_ports[TRUNK_MAX_PORTS];
 };
 
-int		trunk_enqueue(struct ifnet *, struct mbuf *);
 u_int32_t	trunk_hashmbuf(struct mbuf *, SIPHASH_KEY *);
 #endif /* _KERNEL */
 
diff --git sys/net/if_vlan_var.h sys/net/if_vlan_var.h
index df51cc186f0..911dbd2e3e0 100644
--- sys/net/if_vlan_var.h
+++ sys/net/if_vlan_var.h
@@ -49,7 +49,6 @@ struct	vlanreq {
 #ifdef _KERNEL
 struct mbuf	*vlan_input(struct ifnet *, struct mbuf *, unsigned int *);
 struct mbuf	*vlan_inject(struct mbuf *, uint16_t, uint16_t);
-void		 vlan_flags_from_parent(struct ifnet *, int);
 #endif /* _KERNEL */
 
 #endif /* _NET_IF_VLAN_VAR_H_ */
diff --git sys/net/pf_ioctl.c sys/net/pf_ioctl.c
index 567ee888077..1a90c13df9c 100644
--- sys/net/pf_ioctl.c
+++ sys/net/pf_ioctl.c
@@ -89,7 +89,6 @@
 struct pool		 pf_tag_pl;
 
 void			 pfattach(int);
-void			 pf_thread_create(void *);
 int			 pfopen(dev_t, int, int, struct proc *);
 int			 pfclose(dev_t, int, int, struct proc *);
 int			 pfioctl(dev_t, u_long, caddr_t, int, struct proc *);
diff --git sys/net/pfkeyv2.h sys/net/pfkeyv2.h
index 64aa6454de9..13f063ab4e9 100644
--- sys/net/pfkeyv2.h
+++ sys/net/pfkeyv2.h
@@ -428,7 +428,6 @@ int pfkeyv2_dump_walker(struct tdb *, void *, int);
 int pfkeyv2_get_proto_alg(u_int8_t, u_int8_t *, int *);
 int pfkeyv2_sysctl(int *, u_int, void *, size_t *, void *, size_t);
 int pfkeyv2_sysctl_walker(struct tdb *, void *, int);
-int pfkeyv2_sysctl_dump(void *);
 
 int pfdatatopacket(void *, int, struct mbuf **);
 
diff --git sys/net/pfvar.h sys/net/pfvar.h
index cc35f445871..f1a9e8dbc41 100644
--- sys/net/pfvar.h
+++ sys/net/pfvar.h
@@ -1605,7 +1605,6 @@ extern void			 pf_tbladdr_remove(struct pf_addr_wrap *);
 extern void			 pf_tbladdr_copyout(struct pf_addr_wrap *);
 extern void			 pf_calc_skip_steps(struct pf_rulequeue *);
 extern void			 pf_purge_expired_src_nodes(void);
-extern void			 pf_purge_expired_rules(void);
 extern void			 pf_remove_state(struct pf_state *);
 extern void			 pf_remove_divert_state(struct inpcb *);
 extern void			 pf_free_state(struct pf_state *);
@@ -1638,7 +1637,6 @@ extern void			 pf_cksum_fixup(u_int16_t *, u_int16_t,
 				    u_int16_t, u_int8_t);
 void				 pf_rm_rule(struct pf_rulequeue *,
 				    struct pf_rule *);
-void				 pf_purge_rule(struct pf_rule *);
 struct pf_divert		*pf_find_divert(struct mbuf *);
 int				 pf_setup_pdesc(struct pf_pdesc *, sa_family_t,
 				    int, struct pfi_kif *, struct mbuf *,
@@ -1661,7 +1659,6 @@ int	pf_patch_32(struct pf_pdesc *, u_int32_t *, u_int32_t);
 int	pf_patch_32_unaligned(struct pf_pdesc *, void *, u_int32_t, bool);
 int	pflog_packet(struct pf_pdesc *, u_int8_t, struct pf_rule *,
 	    struct pf_rule *, struct pf_ruleset *, struct pf_rule *);
-void	pf_send_deferred_syn(struct pf_state *);
 int	pf_match_addr(u_int8_t, struct pf_addr *, struct pf_addr *,
 	    struct pf_addr *, sa_family_t);
 int	pf_match_addr_range(struct pf_addr *, struct pf_addr *,
@@ -1829,7 +1826,6 @@ struct pf_ruleset	*pf_find_ruleset(const char *);
 struct pf_ruleset 	*pf_get_leaf_ruleset(char *, char **);
 struct pf_anchor 	*pf_create_anchor(struct pf_anchor *, const char *);
 struct pf_ruleset	*pf_find_or_create_ruleset(const char *);
-void			 pf_rs_initialize(void);
 void			 pf_anchor_rele(struct pf_anchor *);
 struct pf_anchor	*pf_anchor_take(struct pf_anchor *);
 
diff --git sys/net/rtable.h sys/net/rtable.h
index 143b517d98b..1999c48b075 100644
--- sys/net/rtable.h
+++ sys/net/rtable.h
@@ -55,8 +55,6 @@ int		 rtable_walk(unsigned int, sa_family_t, struct rtentry **,
 		     int (*)(struct rtentry *, void *, unsigned int), void *);
 
 int		 rtable_mpath_capable(unsigned int, sa_family_t);
-struct rtentry	*rtable_mpath_match(unsigned int, struct rtentry *,
-		     struct sockaddr *, uint8_t);
 int		 rtable_mpath_reprio(unsigned int, struct sockaddr *, int,
 		     uint8_t, struct rtentry *);
 
diff --git sys/net80211/ieee80211_input.c sys/net80211/ieee80211_input.c
index cdc40bc3e41..a54794a55ac 100644
--- sys/net80211/ieee80211_input.c
+++ sys/net80211/ieee80211_input.c
@@ -75,7 +75,6 @@ void	ieee80211_ba_move_window(struct ieee80211com *,
 	    struct ieee80211_node *, u_int8_t, u_int16_t, struct mbuf_list *);
 void	ieee80211_input_ba_seq(struct ieee80211com *,
 	    struct ieee80211_node *, uint8_t, uint16_t, struct mbuf_list *);
-struct	mbuf *ieee80211_align_mbuf(struct mbuf *);
 void	ieee80211_decap(struct ieee80211com *, struct mbuf *,
 	    struct ieee80211_node *, int, struct mbuf_list *);
 int	ieee80211_amsdu_decap_validate(struct ieee80211com *, struct mbuf *,
diff --git sys/netinet/icmp6.h sys/netinet/icmp6.h
index 210c6191fd8..8df46e15cd3 100644
--- sys/netinet/icmp6.h
+++ sys/netinet/icmp6.h
@@ -590,13 +590,11 @@ struct	rttimer;
 struct	in6_multi;
 
 void		 icmp6_init(void);
-void		 icmp6_paramerror(struct mbuf *, int);
 struct mbuf	*icmp6_do_error(struct mbuf *, int, int, int);
 void		 icmp6_error(struct mbuf *, int, int, int);
 int		 icmp6_input(struct mbuf **, int *, int, int);
 void		 icmp6_fasttimo(void);
 int		 icmp6_reflect(struct mbuf **, size_t, struct sockaddr *);
-void		 icmp6_prepare(struct mbuf *);
 void		 icmp6_redirect_input(struct mbuf *, int);
 void		 icmp6_redirect_output(struct mbuf *, struct rtentry *);
 int		 icmp6_sysctl(int *, u_int, void *, size_t *, void *, size_t);
diff --git sys/netinet/ip_gre.h sys/netinet/ip_gre.h
index b626e3115bb..1f189b07398 100644
--- sys/netinet/ip_gre.h
+++ sys/netinet/ip_gre.h
@@ -56,8 +56,6 @@
 
 extern const struct pr_usrreqs gre_usrreqs;
 
-int     gre_usrreq(struct socket *, int, struct mbuf *, struct mbuf *,
-	    struct mbuf *, struct proc *);
 int     gre_send(struct socket *, struct mbuf *, struct mbuf *,
 	    struct mbuf *);
 #endif /* _KERNEL */
diff --git sys/netinet/tcp_var.h sys/netinet/tcp_var.h
index 3d75cf84c6e..8da62bd2393 100644
--- sys/netinet/tcp_var.h
+++ sys/netinet/tcp_var.h
@@ -724,7 +724,6 @@ u_int	 tcp_hdrsz(struct tcpcb *);
 void	 tcp_mtudisc(struct inpcb *, int);
 void	 tcp_mtudisc_increase(struct inpcb *, int);
 #ifdef INET6
-void	tcp6_mtudisc(struct inpcb *, int);
 void	tcp6_mtudisc_callback(struct sockaddr_in6 *, u_int);
 #endif
 struct tcpcb *
@@ -771,7 +770,6 @@ int	 tcp_rcvoob(struct socket *, struct mbuf *, int);
 int	 tcp_sendoob(struct socket *, struct mbuf *, struct mbuf *,
 	     struct mbuf *);
 void	 tcp_xmit_timer(struct tcpcb *, int32_t);
-void	 tcpdropoldhalfopen(struct tcpcb *, u_int16_t);
 void	 tcp_sack_option(struct tcpcb *,struct tcphdr *,u_char *,int);
 void	 tcp_update_sack_list(struct tcpcb *tp, tcp_seq, tcp_seq);
 void	 tcp_del_sackholes(struct tcpcb *, struct tcphdr *);
diff --git sys/netinet6/in6.h sys/netinet6/in6.h
index f4e99485d02..253196d5b3b 100644
--- sys/netinet6/in6.h
+++ sys/netinet6/in6.h
@@ -412,7 +412,6 @@ struct mbuf *
 
 int	in6_cksum(struct mbuf *, uint8_t, uint32_t, uint32_t);
 void	in6_proto_cksum_out(struct mbuf *, struct ifnet *);
-int	in6_localaddr(struct in6_addr *);
 int	in6_addrscope(struct in6_addr *);
 struct	in6_ifaddr *in6_ifawithscope(struct ifnet *, struct in6_addr *, u_int,
 	    struct rtentry *);
diff --git sys/netinet6/in6_var.h sys/netinet6/in6_var.h
index bd64239f2ce..8920726ea9d 100644
--- sys/netinet6/in6_var.h
+++ sys/netinet6/in6_var.h
@@ -362,14 +362,11 @@ int	in6_update_ifa(struct ifnet *, struct in6_aliasreq *,
 	struct in6_ifaddr *);
 void	in6_purgeaddr(struct ifaddr *);
 int	in6if_do_dad(struct ifnet *);
-void	*in6_domifattach(struct ifnet *);
-void	in6_domifdetach(struct ifnet *, void *);
 struct in6_ifaddr *in6ifa_ifpforlinklocal(struct ifnet *, int);
 struct in6_ifaddr *in6ifa_ifpwithaddr(struct ifnet *, struct in6_addr *);
 int	in6_addr2scopeid(unsigned int, struct in6_addr *);
 int	in6_matchlen(struct in6_addr *, struct in6_addr *);
 void	in6_prefixlen2mask(struct in6_addr *, int);
-void	in6_purgeprefix(struct ifnet *);
 #endif /* _KERNEL */
 
 #endif /* _NETINET6_IN6_VAR_H_ */
diff --git sys/netinet6/ip6_var.h sys/netinet6/ip6_var.h
index 986bc45e51d..feaf06ce1fe 100644
--- sys/netinet6/ip6_var.h
+++ sys/netinet6/ip6_var.h
@@ -364,7 +364,6 @@ int	rip6_send(struct socket *, struct mbuf *, struct mbuf *,
 int	rip6_sysctl(int *, u_int, void *, size_t *, void *, size_t);
 
 int	dest6_input(struct mbuf **, int *, int, int);
-int	none_input(struct mbuf **, int *, int);
 
 int	in6_pcbselsrc(const struct in6_addr **, struct sockaddr_in6 *,
 	    struct inpcb *, struct ip6_pktopts *);
diff --git sys/ntfs/ntfs_subr.h sys/ntfs/ntfs_subr.h
index 3a7f22b0411..13e77aa8d67 100644
--- sys/ntfs/ntfs_subr.h
+++ sys/ntfs/ntfs_subr.h
@@ -78,13 +78,10 @@ int ntfs_readntvattr_plain( struct ntfsmount *, struct ntnode *, struct ntvattr
 int ntfs_readattr_plain( struct ntfsmount *, struct ntnode *, u_int32_t, char *, off_t, size_t, void *,size_t *, struct uio *);
 int ntfs_readattr( struct ntfsmount *, struct ntnode *, u_int32_t, char *, off_t, size_t, void *, struct uio *);
 int ntfs_filesize( struct ntfsmount *, struct fnode *, u_int64_t *, u_int64_t *);
-int ntfs_times( struct ntfsmount *, struct ntnode *, ntfs_times_t *);
 struct timespec	ntfs_nttimetounix( u_int64_t );
 int ntfs_runtovrun( cn_t **, cn_t **, u_long *, u_int8_t *);
 int ntfs_attrtontvattr( struct ntfsmount *, struct ntvattr **, struct attr * );
 void ntfs_freentvattr( struct ntvattr * );
-int ntfs_loadntvattrs( struct ntfsmount *, struct vnode *, caddr_t, struct ntvattr **);
-struct ntvattr * ntfs_findntvattr( struct ntfsmount *, struct ntnode *, u_int32_t, cn_t );
 int ntfs_isnamepermitted(struct ntfsmount *, struct attr_indexentry * );
 int ntfs_ntvattrrele(struct ntvattr * );
 int ntfs_ntvattrget(struct ntfsmount *, struct ntnode *, u_int32_t, const char *, cn_t , struct ntvattr **);
diff --git sys/scsi/mpath.c sys/scsi/mpath.c
index 049000ba9af..be022b0122f 100644
--- sys/scsi/mpath.c
+++ sys/scsi/mpath.c
@@ -34,7 +34,6 @@
 
 int		mpath_match(struct device *, void *, void *);
 void		mpath_attach(struct device *, struct device *, void *);
-void		mpath_shutdown(void *);
 
 TAILQ_HEAD(mpath_paths, mpath_path);
 
diff --git sys/ufs/ffs/ffs_extern.h sys/ufs/ffs/ffs_extern.h
index 315f23fc34f..f6097e56c42 100644
--- sys/ufs/ffs/ffs_extern.h
+++ sys/ufs/ffs/ffs_extern.h
@@ -151,7 +151,6 @@ int ffs_vptofh(struct vnode *, struct fid *);
 int ffs_sysctl(int *, u_int, void *, size_t *, void *, size_t,
 		    struct proc *);
 int ffs_sbupdate(struct ufsmount *, int);
-int ffs_cgupdate(struct ufsmount *, int);
 
 /* ffs_vnops.c */
 int ffs_read(void *);
diff --git sys/ufs/ufs/ufs_extern.h sys/ufs/ufs/ufs_extern.h
index 0a3c480f8ee..aa41833a8c4 100644
--- sys/ufs/ufs/ufs_extern.h
+++ sys/ufs/ufs/ufs_extern.h
@@ -67,7 +67,6 @@ int	 ufs_lock(void *);
 int	 ufs_lookup(void *);
 int	 ufs_mkdir(void *);
 int	 ufs_mknod(void *);
-int	 ufs_mmap(void *);
 int	 ufs_open(void *);
 int	 ufs_pathconf(void *);
 int	 ufs_print(void *);
diff --git sys/uvm/uvm_addr.c sys/uvm/uvm_addr.c
index ac0574a7eaf..618eee95a07 100644
--- sys/uvm/uvm_addr.c
+++ sys/uvm/uvm_addr.c
@@ -102,7 +102,6 @@ void			 uaddr_kinsert(struct vm_map *,
 			    struct uvm_addr_state *, struct vm_map_entry *);
 void			 uaddr_kremove(struct vm_map *,
 			    struct uvm_addr_state *, struct vm_map_entry *);
-void			 uaddr_kbootstrapdestroy(struct uvm_addr_state *);
 
 void			 uaddr_destroy(struct uvm_addr_state *);
 void			 uaddr_kbootstrap_destroy(struct uvm_addr_state *);
diff --git sys/uvm/uvm_page.h sys/uvm/uvm_page.h
index b70ec7d3bfb..df1d81fbdda 100644
--- sys/uvm/uvm_page.h
+++ sys/uvm/uvm_page.h
@@ -234,7 +234,6 @@ void		uvm_page_unbusy(struct vm_page **, int);
 struct vm_page	*uvm_pagelookup(struct uvm_object *, voff_t);
 void		uvm_pageunwire(struct vm_page *);
 void		uvm_pagewait(struct vm_page *, struct rwlock *, const char *);
-void		uvm_pagewake(struct vm_page *);
 void		uvm_pagewire(struct vm_page *);
 void		uvm_pagezero(struct vm_page *);
 void		uvm_pagealloc_pg(struct vm_page *, struct uvm_object *,