From: miod Date: Fri, 29 Mar 2024 21:09:49 +0000 (+0000) Subject: Comment out unused routines. They might become used in the future, so they X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=bec25f4216ea7b8db16a1f26cd51d937e12d569e;p=openbsd Comment out unused routines. They might become used in the future, so they are better not moved to the Attic yet. ok claudio@ kettenis@ --- diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c index 7942fcd6ab0..60da009a7b6 100644 --- a/sys/arch/sparc64/sparc64/machdep.c +++ b/sys/arch/sparc64/sparc64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.210 2024/03/29 21:06:14 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.211 2024/03/29 21:09:49 miod Exp $ */ /* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */ /*- @@ -1684,11 +1684,13 @@ bus_intr_allocate(bus_space_tag_t t, int (*handler)(void *), void *arg, return (ih); } +#ifdef notyet void bus_intr_free(void *arg) { free(arg, M_DEVBUF, 0); } +#endif void * sparc_mainbus_intr_establish(bus_space_tag_t t, bus_space_tag_t t0, int number, diff --git a/sys/arch/sparc64/sparc64/ofw_machdep.c b/sys/arch/sparc64/sparc64/ofw_machdep.c index ba6f23e072f..a07a5aedc27 100644 --- a/sys/arch/sparc64/sparc64/ofw_machdep.c +++ b/sys/arch/sparc64/sparc64/ofw_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ofw_machdep.c,v 1.37 2024/03/29 21:06:14 miod Exp $ */ +/* $OpenBSD: ofw_machdep.c,v 1.38 2024/03/29 21:09:49 miod Exp $ */ /* $NetBSD: ofw_machdep.c,v 1.16 2001/07/20 00:07:14 eeh Exp $ */ /* @@ -243,6 +243,7 @@ prom_alloc_virt(int len, int align) return (vaddr_t)args.retaddr; } +#ifdef unused /* * Release some address space to the prom * @@ -274,7 +275,7 @@ prom_free_virt(vaddr_t vaddr, int len) args.len = len; return openfirmware(&args); } - +#endif /* * Unmap some address space