From owner-freebsd-current@FreeBSD.ORG Wed Jul 21 10:19:44 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 382CC16A4CE for ; Wed, 21 Jul 2004 10:19:44 +0000 (GMT) Received: from unimail.uni-dortmund.de (mx1.HRZ.Uni-Dortmund.DE [129.217.128.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 742A543D45 for ; Wed, 21 Jul 2004 10:19:43 +0000 (GMT) (envelope-from matthias.andree@gmx.de) Received: from m2a2.myip.org (87pcjf2mc1oaa28t@p5487CA3B.dip.t-dialin.net [84.135.202.59]) (authenticated bits=0)i6LAHu64004286 for ; Wed, 21 Jul 2004 12:18:01 +0200 (CEST) Received: by merlin.emma.line.org (Postfix, from userid 1001) id C3B211B206; Wed, 21 Jul 2004 12:17:55 +0200 (CEST) Date: Wed, 21 Jul 2004 12:17:55 +0200 From: Matthias Andree To: freebsd-current@freebsd.org Message-ID: <20040721101755.GA78370@merlin.emma.line.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-MailScanner-Information: UniDo-UniMail X-MailScanner: Found to be clean X-MailScanner-SpamCheck: not spam, SpamAssassin (Wertung=-4.9, benoetigt 5, BAYES_00, UPPERCASE_25_50) X-MailScanner-From: matthias.andree@gmx.de X-Mailman-Approved-At: Wed, 21 Jul 2004 11:38:15 +0000 Subject: compile failure without WITNESS -- sys/sys/mbuf.h lacks #ifdef WITNESS X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jul 2004 10:19:44 -0000 Hi, I've had a kernel compile problem recently, WITNESS_WARN implicitly declared and WARN_GIANTOK and WARN_SLEEPOK undefined. I don't have the WITNESS option enabled for my kernel. I've tracked this down to lines 311ff in sys/sys/mbuf.h, #define MBUF_CHECKSLEEP(how)... Changing these lines to: #ifdef WITNESS #define MBUF_CHECKSLEEP(how) do { \ if (how == M_WAITOK) \ WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, \ "Sleeping in \"%s\"", __func__); \ } while(0) #else #define MBUF_CHECKSLEEP(how) #endif fixed my problem. -- Matthias Andree