From: jsg Date: Sat, 6 Jul 2024 10:39:50 +0000 (+0000) Subject: remove ampintc_intr_string(), unused on arm64 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=dc3a4b19223a9ca5d6c380e28f9c447c00d1938f;p=openbsd remove ampintc_intr_string(), unused on arm64 ok mlarkin@ kettenis@ --- diff --git a/sys/arch/arm64/dev/ampintc.c b/sys/arch/arm64/dev/ampintc.c index 3c0ccb8ed47..b9b29158e66 100644 --- a/sys/arch/arm64/dev/ampintc.c +++ b/sys/arch/arm64/dev/ampintc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ampintc.c,v 1.31 2023/09/22 01:10:43 jsg Exp $ */ +/* $OpenBSD: ampintc.c,v 1.32 2024/07/06 10:39:50 jsg Exp $ */ /* * Copyright (c) 2007,2009,2011 Dale Rahn * @@ -185,7 +185,6 @@ void *ampintc_intr_establish_fdt(void *, int *, int, struct cpu_info *, int (*)(void *), void *, char *); void ampintc_intr_disestablish(void *); void ampintc_irq_handler(void *); -const char *ampintc_intr_string(void *); uint32_t ampintc_iack(void); void ampintc_eoi(uint32_t); void ampintc_set_priority(int, int); @@ -897,16 +896,6 @@ ampintc_intr_disestablish(void *cookie) free(ih, M_DEVBUF, sizeof(*ih)); } -const char * -ampintc_intr_string(void *cookie) -{ - struct intrhand *ih = (struct intrhand *)cookie; - static char irqstr[1 + sizeof("ampintc irq ") + 4]; - - snprintf(irqstr, sizeof irqstr, "ampintc irq %d", ih->ih_irq); - return irqstr; -} - /* * GICv2m frame controller for MSI interrupts. */