From 0986b6b87f449c35be8179c7b08c0a582aa52cc6 Mon Sep 17 00:00:00 2001 From: attilio Date: Mon, 23 Jul 2007 23:16:53 +0000 Subject: [PATCH] upcall_free() was only used in kse_GC() which has been removed so it now results unused; this, with -Werror option of gcc, rise a warning for gcc which let the buildkernel to be busted. Fix this removing upcall_free(). Reported by: various Approved by: jeff Approved by: re Pointy hat to: attilio --- sys/kern/kern_kse.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index e92558b21ebd..a4a92e187ecd 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -67,7 +67,6 @@ static int thread_update_usr_ticks(struct thread *td); static void thread_alloc_spare(struct thread *td); static struct thread *thread_schedule_upcall(struct thread *td, struct kse_upcall *ku); static struct kse_upcall *upcall_alloc(void); -static void upcall_free(struct kse_upcall *ku); struct mtx kse_lock; @@ -82,13 +81,6 @@ upcall_alloc(void) return (ku); } -void -upcall_free(struct kse_upcall *ku) -{ - - uma_zfree(upcall_zone, ku); -} - void upcall_remove(struct thread *td) {