From owner-freebsd-current@FreeBSD.ORG Sat Jul 17 17:49:11 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 9342916A4CE for ; Sat, 17 Jul 2004 17:49:11 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3946343D4C for ; Sat, 17 Jul 2004 17:49:09 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i6HHmhZA032311; Sat, 17 Jul 2004 13:48:43 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i6HHmhC3032308; Sat, 17 Jul 2004 13:48:43 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Sat, 17 Jul 2004 13:48:43 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Harald Schmalzbauer In-Reply-To: <200407161925.14816@harryhomeworkstation> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org Subject: Re: kernel build error in cam_periph_mapmem 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: Sat, 17 Jul 2004 17:49:11 -0000 On Fri, 16 Jul 2004, Harald Schmalzbauer wrote: > for several cvsups my kernel build fails with the following: > > cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual > -fformat-extensions -std=c99 -nostdinc -I- -I. -I/usr/src/sys > -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq > -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf > -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd > -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common > -finline-limit=8000 -mno-align-long-strings -mpreferred-stack-boundary=2 > -ffreestanding -Werror /usr/src/sys/cam/cam_periph.c > /usr/src/sys/cam/cam_periph.c: In function `cam_periph_mapmem': > /usr/src/sys/cam/cam_periph.c:624: warning: implicit declaration of function > `_mtx_assert' > /usr/src/sys/cam/cam_periph.c:624: error: `MA_OWNED' undeclared (first use in > this function) It looks like your copy of cam_periph.c doesn't #include mutex.h, which is where MA_OWNED is defined. Revision 1.56, which is what I have checked out here, appears to include if. Could you confirm you have revision 1.56 without any local modifications? Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research