From owner-freebsd-bugs Sun Mar 17 4:10:52 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 16DB237B439 for ; Sun, 17 Mar 2002 04:10:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2HCA3130813; Sun, 17 Mar 2002 04:10:03 -0800 (PST) (envelope-from gnats) 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 X-Send-Pr-Version: www-1.0 Subject: kern/36002: compile is stopped without DDB define Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 36002 >Category: kern >Synopsis: compile is stopped without DDB define >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 17 04:10:02 PST 2002 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message