From nobody@FreeBSD.org  Sun Apr 16 02:03:05 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9D38B16A401
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 16 Apr 2006 02:03:05 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6C2B043D45
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 16 Apr 2006 02:03:05 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k3G234E5045902
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 16 Apr 2006 02:03:04 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k3G234Sq045901;
	Sun, 16 Apr 2006 02:03:04 GMT
	(envelope-from nobody)
Message-Id: <200604160203.k3G234Sq045901@www.freebsd.org>
Date: Sun, 16 Apr 2006 02:03:04 GMT
From: Tomas Olsson <tol@stacken.kth.se>
To: freebsd-gnats-submit@FreeBSD.org
Subject: witness_levelall() in subr_witness.c should be #ifdef DDB
X-Send-Pr-Version: www-2.3

>Number:         95848
>Category:       kern
>Synopsis:       [kernel] witness_levelall() in subr_witness.c should be #ifdef DDB
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 16 02:10:15 GMT 2006
>Closed-Date:    Wed Apr 19 22:42:30 GMT 2006
>Last-Modified:  Wed Apr 19 22:42:30 GMT 2006
>Originator:     Tomas Olsson
>Release:        RELENG_6
>Organization:
Stacken Computer Club
>Environment:
FreeBSD pytte.t.nxs.se 6.1-BETA3 FreeBSD 6.1-BETA3 #0: Thu Mar  2 11:03:41 UTC 2006     root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
Using a fresh cvsup:ed RELENG_6 sys tree with subr_witness.c 1.195.2.8, I get
./../../kern/subr_witness.c:1524: warning: 'witness_levelall' defined but not used
*** Error code 1

My config has
options         WITNESS
but not DDB.
>How-To-Repeat:
Configure kernel as above compile.
>Fix:
"#ifdef DDB" once or twice does the trick, as in HEAD.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: maxim 
State-Changed-When: Wed Apr 19 22:41:49 UTC 2006 
State-Changed-Why:  
jhb@ has committed the fix to RELENG_6 and RELENG_6_1. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=95848 
>Unformatted:
