From 3b372c3481e8650fbe12d5cb2d27ca2fb82bc7d2 Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 14 May 2024 08:26:13 +0000 Subject: [PATCH] remove prototypes with no matching function --- sys/arch/arm/arm/arm32_machdep.c | 3 +-- sys/arch/sparc64/dev/ebus.c | 3 +-- sys/arch/sparc64/dev/ifb.c | 3 +-- sys/arch/sparc64/dev/pcons.c | 3 +-- sys/arch/sparc64/dev/vldcp.c | 3 +-- sys/arch/sparc64/sparc64/machdep.c | 7 +------ sys/dev/acpi/dsdt.c | 7 +------ sys/dev/pv/pvclock.c | 4 +--- sys/dev/pv/viogpu.c | 4 +--- sys/kern/kern_task.c | 4 +--- sys/net/pf.c | 4 +--- sys/tmpfs/tmpfs_fifoops.c | 3 +-- 12 files changed, 12 insertions(+), 36 deletions(-) diff --git a/sys/arch/arm/arm/arm32_machdep.c b/sys/arch/arm/arm/arm32_machdep.c index 89c7cc00d7c..ce298409f3d 100644 --- a/sys/arch/arm/arm/arm32_machdep.c +++ b/sys/arch/arm/arm/arm32_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arm32_machdep.c,v 1.62 2021/05/16 03:39:27 jsg Exp $ */ +/* $OpenBSD: arm32_machdep.c,v 1.63 2024/05/14 08:26:13 jsg Exp $ */ /* $NetBSD: arm32_machdep.c,v 1.42 2003/12/30 12:33:15 pk Exp $ */ /* @@ -109,7 +109,6 @@ struct consdev *cn_tab; void data_abort_handler (trapframe_t *frame); void prefetch_abort_handler (trapframe_t *frame); -extern void configure (void); /* * arm32_vector_init: diff --git a/sys/arch/sparc64/dev/ebus.c b/sys/arch/sparc64/dev/ebus.c index 307c673a89c..67016f37858 100644 --- a/sys/arch/sparc64/dev/ebus.c +++ b/sys/arch/sparc64/dev/ebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ebus.c,v 1.26 2021/10/24 17:05:03 mpi Exp $ */ +/* $OpenBSD: ebus.c,v 1.27 2024/05/14 08:26:13 jsg Exp $ */ /* $NetBSD: ebus.c,v 1.24 2001/07/25 03:49:54 eeh Exp $ */ /* @@ -88,7 +88,6 @@ struct cfdriver ebus_cd = { void ebus_find_ino(struct ebus_softc *, struct ebus_attach_args *); -int ebus_find_node(struct pci_attach_args *); /* * here are our bus space and bus dma routines. diff --git a/sys/arch/sparc64/dev/ifb.c b/sys/arch/sparc64/dev/ifb.c index c2886dbbe45..11c49f738bc 100644 --- a/sys/arch/sparc64/dev/ifb.c +++ b/sys/arch/sparc64/dev/ifb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifb.c,v 1.26 2022/07/15 17:57:26 kettenis Exp $ */ +/* $OpenBSD: ifb.c,v 1.27 2024/05/14 08:26:13 jsg Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Miodrag Vallat. @@ -338,7 +338,6 @@ int ifb_copyrows_dumb(void *, int, int, int); int ifb_eraserows_dumb(void *, int, int, uint32_t); int ifb_do_cursor_dumb(struct rasops_info *); -int ifb_putchar(void *, int, int, u_int, uint32_t); int ifb_copycols(void *, int, int, int, int); int ifb_erasecols(void *, int, int, int, uint32_t); int ifb_copyrows(void *, int, int, int); diff --git a/sys/arch/sparc64/dev/pcons.c b/sys/arch/sparc64/dev/pcons.c index e37b845125a..95168a1c0bc 100644 --- a/sys/arch/sparc64/dev/pcons.c +++ b/sys/arch/sparc64/dev/pcons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcons.c,v 1.28 2024/04/13 23:44:11 jsg Exp $ */ +/* $OpenBSD: pcons.c,v 1.29 2024/05/14 08:26:13 jsg Exp $ */ /* $NetBSD: pcons.c,v 1.7 2001/05/02 10:32:20 scw Exp $ */ /*- @@ -522,7 +522,6 @@ cn_get_magic(char *magic, int maglen) { int pcons_alloc_screen(void *, const struct wsscreen_descr *, void **, int *, int *, uint32_t *); -void pcons_cursor(void *, int, int, int); void pcons_free_screen(void *, void *); int pcons_ioctl(void *, u_long, caddr_t, int, struct proc *); int pcons_mapchar(void *, int, unsigned int *); diff --git a/sys/arch/sparc64/dev/vldcp.c b/sys/arch/sparc64/dev/vldcp.c index 0757b3f8998..c9db625ff44 100644 --- a/sys/arch/sparc64/dev/vldcp.c +++ b/sys/arch/sparc64/dev/vldcp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vldcp.c,v 1.25 2022/08/17 15:26:56 visa Exp $ */ +/* $OpenBSD: vldcp.c,v 1.26 2024/05/14 08:26:13 jsg Exp $ */ /* * Copyright (c) 2009, 2012 Mark Kettenis * @@ -72,7 +72,6 @@ void vldcp_attach(struct device *, struct device *, void *); void filt_vldcprdetach(struct knote *); void filt_vldcpwdetach(struct knote *); int filt_vldcpread(struct knote *, long); -int filt_vldcpwrite(struct knote *, long); int vldcpkqfilter(dev_t, struct knote *); const struct cfattach vldcp_ca = { diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c index 20680bb4d87..7e8b8672721 100644 --- a/sys/arch/sparc64/sparc64/machdep.c +++ b/sys/arch/sparc64/sparc64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.216 2024/03/29 21:29:34 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.217 2024/05/14 08:26:13 jsg Exp $ */ /* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */ /*- @@ -139,11 +139,6 @@ void _bus_dmamem_unmap(bus_dma_tag_t tag, bus_dma_tag_t, caddr_t kva, paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_tag_t, bus_dma_segment_t *segs, int nsegs, off_t off, int prot, int flags); -int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_dma_tag_t, - bus_size_t size, bus_size_t alignment, bus_size_t boundary, - bus_dma_segment_t *segs, int nsegs, int *rsegs, int flags, - vaddr_t low, vaddr_t high); - /* * The "bus_space_debug" flags used by macros elsewhere. * A good set of flags to use when first debugging something is: diff --git a/sys/dev/acpi/dsdt.c b/sys/dev/acpi/dsdt.c index d95cba6bb3d..3f75b2de8ce 100644 --- a/sys/dev/acpi/dsdt.c +++ b/sys/dev/acpi/dsdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsdt.c,v 1.267 2024/05/13 01:15:50 jsg Exp $ */ +/* $OpenBSD: dsdt.c,v 1.268 2024/05/14 08:26:13 jsg Exp $ */ /* * Copyright (c) 2005 Jordan Hargrave * @@ -56,8 +56,6 @@ struct aml_scope *aml_load(struct acpi_softc *, struct aml_scope *, void aml_copyvalue(struct aml_value *, struct aml_value *); -void aml_setvalue(struct aml_scope *, struct aml_value *, - struct aml_value *, int64_t); void aml_freevalue(struct aml_value *); struct aml_value *aml_allocvalue(int, int64_t, const void *); struct aml_value *_aml_setvalue(struct aml_value *, int, int64_t, @@ -78,9 +76,6 @@ void aml_bufcpy(void *, int, const void *, int, int); int aml_pc(uint8_t *); -int aml_evalterm(struct aml_scope *scope, - struct aml_value *raw, struct aml_value *dst); - struct aml_opcode *aml_findopcode(int); #define acpi_os_malloc(sz) _acpi_os_malloc(sz, __FUNCTION__, __LINE__) diff --git a/sys/dev/pv/pvclock.c b/sys/dev/pv/pvclock.c index e696d95a10c..815d8afb7c4 100644 --- a/sys/dev/pv/pvclock.c +++ b/sys/dev/pv/pvclock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pvclock.c,v 1.9 2023/02/04 19:19:37 cheloha Exp $ */ +/* $OpenBSD: pvclock.c,v 1.10 2024/05/14 08:26:13 jsg Exp $ */ /* * Copyright (c) 2018 Reyk Floeter @@ -51,8 +51,6 @@ void pvclock_attach(struct device *, struct device *, void *); int pvclock_activate(struct device *, int); uint pvclock_get_timecount(struct timecounter *); -void pvclock_read_time_info(struct pvclock_softc *, - struct pvclock_time_info *); static inline uint32_t pvclock_read_begin(const struct pvclock_time_info *); diff --git a/sys/dev/pv/viogpu.c b/sys/dev/pv/viogpu.c index d305cf91fa8..2d8d3074a9b 100644 --- a/sys/dev/pv/viogpu.c +++ b/sys/dev/pv/viogpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: viogpu.c,v 1.4 2024/05/13 01:15:51 jsg Exp $ */ +/* $OpenBSD: viogpu.c,v 1.5 2024/05/14 08:26:13 jsg Exp $ */ /* * Copyright (c) 2021-2023 joshua stein @@ -60,8 +60,6 @@ int viogpu_wsioctl(void *, u_long, caddr_t, int, struct proc *); paddr_t viogpu_wsmmap(void *, off_t, int); 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 *); #define VIOGPU_HEIGHT 160 #define VIOGPU_WIDTH 160 diff --git a/sys/kern/kern_task.c b/sys/kern/kern_task.c index 38ba22f03d7..c3dcc5f48cc 100644 --- a/sys/kern/kern_task.c +++ b/sys/kern/kern_task.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_task.c,v 1.34 2023/07/29 06:52:08 anton Exp $ */ +/* $OpenBSD: kern_task.c,v 1.35 2024/05/14 08:26:13 jsg Exp $ */ /* * Copyright (c) 2013 David Gwynne @@ -128,8 +128,6 @@ struct taskq *const systqmp = &taskq_sys_mp; void taskq_init(void); /* called in init_main.c */ void taskq_create_thread(void *); void taskq_barrier_task(void *); -int taskq_sleep(const volatile void *, struct mutex *, int, - const char *, int); int taskq_next_work(struct taskq *, struct task *); void taskq_thread(void *); diff --git a/sys/net/pf.c b/sys/net/pf.c index 90254b6c2de..8591b044e43 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.1195 2024/05/10 03:50:12 jsg Exp $ */ +/* $OpenBSD: pf.c,v 1.1196 2024/05/14 08:26:13 jsg Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -237,8 +237,6 @@ int pf_find_state(struct pf_pdesc *, struct pf_state_key_cmp *, struct pf_state **); int pf_src_connlimit(struct pf_state **); int pf_match_rcvif(struct mbuf *, struct pf_rule *); -int pf_step_into_anchor(struct pf_test_ctx *, - struct pf_rule *); enum pf_test_status pf_match_rule(struct pf_test_ctx *, struct pf_ruleset *); void pf_counters_inc(int, struct pf_pdesc *, diff --git a/sys/tmpfs/tmpfs_fifoops.c b/sys/tmpfs/tmpfs_fifoops.c index ee0cca0aa7f..d869f32c10a 100644 --- a/sys/tmpfs/tmpfs_fifoops.c +++ b/sys/tmpfs/tmpfs_fifoops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmpfs_fifoops.c,v 1.8 2024/05/12 16:54:56 semarie Exp $ */ +/* $OpenBSD: tmpfs_fifoops.c,v 1.9 2024/05/14 08:26:13 jsg Exp $ */ /* $NetBSD: tmpfs_fifoops.c,v 1.9 2011/05/24 20:17:49 rmind Exp $ */ /* @@ -43,7 +43,6 @@ #include #include -int tmpfs_fifo_close (void *); int tmpfs_fifo_read (void *); int tmpfs_fifo_write (void *); int tmpfs_fifo_fsync (void *); -- 2.20.1