From: Jonathan Gray Subject: hppa prototypes To: tech@openbsd.org Date: Wed, 22 May 2024 16:00:30 +1000 remove prototypes with no matching function I don't have a way to build this. pdccngetc() and pdccnputc() prototypes are in pdc.h with a different spelling to the prototypes in pdc.c diff --git sys/arch/hppa/dev/elroy.c sys/arch/hppa/dev/elroy.c index 4b389dfb2d2..7a9bffea50d 100644 --- sys/arch/hppa/dev/elroy.c +++ sys/arch/hppa/dev/elroy.c @@ -47,7 +47,6 @@ int elroy_match(struct device *, void *, void *); void elroy_attach(struct device *, struct device *, void *); -int elroy_intr(void *); const struct cfattach elroy_ca = { sizeof(struct elroy_softc), elroy_match, elroy_attach diff --git sys/arch/hppa/dev/pdc.c sys/arch/hppa/dev/pdc.c index 896075bbd6b..bdbb31c1c67 100644 --- sys/arch/hppa/dev/pdc.c +++ sys/arch/hppa/dev/pdc.c @@ -54,9 +54,6 @@ char pdc_consbuf[IODC_MINIOSIZ] PDC_ALIGNMENT; iodcio_t pdc_cniodc, pdc_kbdiodc; pz_device_t *pz_kbd, *pz_cons; -int pdcngetc(dev_t); -void pdcnputc(dev_t, char *); - struct consdev pdccons = { NULL, NULL, pdccngetc, pdccnputc, nullcnpollc, NULL, makedev(22, 0), CN_LOWPRI }; diff --git sys/arch/hppa/dev/siop_sgc.c sys/arch/hppa/dev/siop_sgc.c index d70543a3d5e..0c3aa6421a3 100644 --- sys/arch/hppa/dev/siop_sgc.c +++ sys/arch/hppa/dev/siop_sgc.c @@ -39,7 +39,6 @@ int siop_sgc_match(struct device *, void *, void *); void siop_sgc_attach(struct device *, struct device *, void *); -int siop_sgc_intr(void *); void siop_sgc_reset(struct siop_common_softc *); u_int8_t siop_sgc_r1(void *, bus_space_handle_t, bus_size_t); diff --git sys/arch/hppa/dev/wax.c sys/arch/hppa/dev/wax.c index 4167660fe69..46c8c685137 100644 --- sys/arch/hppa/dev/wax.c +++ sys/arch/hppa/dev/wax.c @@ -42,7 +42,6 @@ int waxmatch(struct device *, void *, void *); void waxattach(struct device *, struct device *, void *); -void wax_gsc_attach(struct device *); const struct cfattach wax_ca = { sizeof(struct device), waxmatch, waxattach diff --git sys/arch/hppa/gsc/harmony.c sys/arch/hppa/gsc/harmony.c index e0ee7de1a81..5c5577a7bf5 100644 --- sys/arch/hppa/gsc/harmony.c +++ sys/arch/hppa/gsc/harmony.c @@ -99,8 +99,6 @@ u_int32_t harmony_speed_bits(struct harmony_softc *, u_long *); int harmony_set_gainctl(struct harmony_softc *); void harmony_reset_codec(struct harmony_softc *); void harmony_start_cp(struct harmony_softc *); -void harmony_tick_pb(void *); -void harmony_tick_cp(void *); void harmony_try_more(struct harmony_softc *); void harmony_acc_tmo(void *); diff --git sys/arch/hppa/gsc/siop_gsc.c sys/arch/hppa/gsc/siop_gsc.c index 2bff40dd420..6533009832d 100644 --- sys/arch/hppa/gsc/siop_gsc.c +++ sys/arch/hppa/gsc/siop_gsc.c @@ -39,7 +39,6 @@ int siop_gsc_match(struct device *, void *, void *); void siop_gsc_attach(struct device *, struct device *, void *); -int siop_gsc_intr(void *); void siop_gsc_reset(struct siop_common_softc *); u_int8_t siop_gsc_r1(void *, bus_space_handle_t, bus_size_t); diff --git sys/arch/hppa/hppa/machdep.c sys/arch/hppa/hppa/machdep.c index 2241bb37366..58a4b6bedfc 100644 --- sys/arch/hppa/hppa/machdep.c +++ sys/arch/hppa/hppa/machdep.c @@ -177,12 +177,6 @@ extern const u_int itlb_s[], itlbna_s[], dtlb_s[], dtlbna_s[], tlbd_s[]; extern const u_int itlb_t[], itlbna_t[], dtlb_t[], dtlbna_t[], tlbd_t[]; extern const u_int itlb_l[], itlbna_l[], dtlb_l[], dtlbna_l[], tlbd_l[]; extern const u_int itlb_u[], itlbna_u[], dtlb_u[], dtlbna_u[], tlbd_u[]; -int iibtlb_s(int i, pa_space_t sp, vaddr_t va, paddr_t pa, - vsize_t sz, u_int prot); -int idbtlb_s(int i, pa_space_t sp, vaddr_t va, paddr_t pa, - vsize_t sz, u_int prot); -int ibtlb_t(int i, pa_space_t sp, vaddr_t va, paddr_t pa, - vsize_t sz, u_int prot); int ibtlb_l(int i, pa_space_t sp, vaddr_t va, paddr_t pa, vsize_t sz, u_int prot); int ibtlb_u(int i, pa_space_t sp, vaddr_t va, paddr_t pa, diff --git sys/arch/hppa/include/autoconf.h sys/arch/hppa/include/autoconf.h index ec039843951..2116dddfb1f 100644 --- sys/arch/hppa/include/autoconf.h +++ sys/arch/hppa/include/autoconf.h @@ -78,6 +78,5 @@ void *cpu_intr_map(void *v, int pri, int irq, int (*handler)(void *), void *arg, const char *name); void *cpu_intr_establish(int pri, int irq, int (*handler)(void *), void *arg, const char *name); -int clock_intr(void *); void dumpconf(void);