From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 28 23:02:23 2012 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1D656FBE for ; Sun, 28 Oct 2012 23:02:23 +0000 (UTC) (envelope-from erik@cederstrand.dk) Received: from csmtp2.one.com (csmtp2.one.com [91.198.169.22]) by mx1.freebsd.org (Postfix) with ESMTP id CD2908FC0C for ; Sun, 28 Oct 2012 23:02:22 +0000 (UTC) Received: from [192.168.1.47] (unknown [176.222.238.90]) by csmtp2.one.com (Postfix) with ESMTPA id 228F03093E39 for ; Sun, 28 Oct 2012 23:02:21 +0000 (UTC) From: Erik Cederstrand Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: opensolaris B_TRUE and B_FALSE Message-Id: <560EA79C-502B-418C-8BF1-A1BC28E05FD1@cederstrand.dk> Date: Mon, 29 Oct 2012 00:02:20 +0100 To: FreeBSD Hackers Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) X-Mailer: Apple Mail (2.1499) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2012 23:02:23 -0000 Hello, I'm looking at this Clang analyzer report: = http://scan.freebsd.your.org/freebsd-head/WORLD/2012-10-24-amd64/report-uH= 6BjZ.html.gz#EndPath Apart from the actual error, which is a apse = positive, it seems like Clang can't find the macro definitions for = B_TRUE and B_FALSE (if it did, hovering over them would show the macro = definition). These are defined in sys/cddl/compat/opensolaris/sys/types.h as an enum = of type boolean_t as long as _KERNEL is not defined. The only definition = for boolean_t I can find is in sys/sys/types.h but it's only defined if = _KERNEL is defined. I'm sure that ZFS wouldn't work if B_TRUE or B_FALSE were undefined, I = just can't figure out where it's happening. I need a hint :-) Thanks, Erik