From nobody@FreeBSD.org Sun Mar 17 04:00:12 2002 Return-Path: Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4F91837B435 for ; Sun, 17 Mar 2002 04:00:06 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2HC06q18059; Sun, 17 Mar 2002 04:00:06 -0800 (PST) (envelope-from nobody) Message-Id: <200203171200.g2HC06q18059@freefall.freebsd.org> Date: Sun, 17 Mar 2002 04:00:06 -0800 (PST) From: Yoshikazu GOTO To: freebsd-gnats-submit@FreeBSD.org Subject: compile is stopped without DDB define X-Send-Pr-Version: www-1.0 >Number: 36002 >Category: kern >Synopsis: compile is stopped without DDB define >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 17 04:10:02 PST 2002 >Closed-Date: Sun Jul 14 19:04:07 PDT 2002 >Last-Modified: Sun Jul 14 19:04:07 PDT 2002 >Originator: Yoshikazu GOTO >Release: -current >Organization: >Environment: >Description: >How-To-Repeat: >Fix: *** subr_witness.c.orig Sun Mar 17 20:59:15 2002 --- subr_witness.c Sun Mar 17 20:37:47 2002 *************** *** 126,133 **** --- 126,135 ---- static int isitmydescendant(struct witness *parent, struct witness *child); static int dup_ok(struct witness *); static int blessed(struct witness *, struct witness *); + #if defined(DDB) static void witness_display_list(void(*prnt)(const char *fmt, ...), struct witness_list *list); + #endif static void witness_displaydescendants(void(*)(const char *fmt, ...), struct witness *); static void witness_leveldescendents(struct witness *parent, int level); *************** *** 138,144 **** --- 140,148 ---- static void witness_child_free(struct witness_child_list_entry *wcl); static struct lock_list_entry *witness_lock_list_get(void); static void witness_lock_list_free(struct lock_list_entry *lle); + #if defined(DDB) static void witness_display(void(*)(const char *fmt, ...)); + #endif static struct lock_instance *find_instance(struct lock_list_entry *lock_list, struct lock_object *lock); *************** *** 402,407 **** --- 406,412 ---- mtx_unlock(&all_mtx); } + #if defined(DDB) static void witness_display_list(void(*prnt)(const char *fmt, ...), struct witness_list *list) *************** *** 427,433 **** witness_displaydescendants(prnt, w); } } ! static void witness_display(void(*prnt)(const char *fmt, ...)) { --- 432,440 ---- witness_displaydescendants(prnt, w); } } ! #endif ! ! #if defined(DDB) static void witness_display(void(*prnt)(const char *fmt, ...)) { *************** *** 459,464 **** --- 466,472 ---- prnt("%s\n", w->w_name); } } + #endif void witness_lock(struct lock_object *lock, int flags, const char *file, int line) >Release-Note: >Audit-Trail: State-Changed-From-To: open->closed State-Changed-By: mp State-Changed-When: Sun Jul 14 19:03:34 PDT 2002 State-Changed-Why: Committed to -current. http://www.freebsd.org/cgi/query-pr.cgi?pr=36002 >Unformatted: