From owner-cvs-all@FreeBSD.ORG Thu Mar 11 05:38:54 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABD1C16A4CE; Thu, 11 Mar 2004 05:38:54 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA3EF43D46; Thu, 11 Mar 2004 05:38:54 -0800 (PST) (envelope-from bde@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i2BDcsGe019153; Thu, 11 Mar 2004 05:38:54 -0800 (PST) (envelope-from bde@repoman.freebsd.org) Received: (from bde@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i2BDcskY019152; Thu, 11 Mar 2004 05:38:54 -0800 (PST) (envelope-from bde) Message-Id: <200403111338.i2BDcskY019152@repoman.freebsd.org> From: Bruce Evans Date: Thu, 11 Mar 2004 05:38:54 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/amd64/include cpufunc.h src/sys/i386/include cpufunc.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2004 13:38:54 -0000 bde 2004/03/11 05:38:54 PST FreeBSD src repository Modified files: sys/amd64/include cpufunc.h sys/i386/include cpufunc.h Log: Don't implement anything in the ffs family in in the non-_KERNEL case. This "fixes" applications that include this "kernel-only" header and also include (or get via the default _BSD_VISIBLE pollution in . In C++ there was a fatal error: the declaration specifies C linkage but the implementation gives C++ linkage. In C there was only a static/extern mismatch if the headers were included in a certain order order, and a partially redundant declaration for all include orders; gcc emits incomplete or wrong diagnostics for these, but only for compiling with -Wsystem-headers and certain other warning options, so the problem was usually not seen for C. Ports breakage reported by: kris Revision Changes Path 1.142 +4 -0 src/sys/amd64/include/cpufunc.h 1.139 +4 -0 src/sys/i386/include/cpufunc.h