From owner-freebsd-current@FreeBSD.ORG  Sun Oct  5 05:05:09 2003
Return-Path: <owner-freebsd-current@FreeBSD.ORG>
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 5466A16A4B3
	for <current@FreeBSD.org>; Sun,  5 Oct 2003 05:05:09 -0700 (PDT)
Received: from silver.tanimura.dyndns.org (IP1B0600.kng.mesh.ad.jp
	[61.203.79.220])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 21DBE43FB1
	for <current@FreeBSD.org>; Sun,  5 Oct 2003 05:05:06 -0700 (PDT)
	(envelope-from tanimura@tanimura.dyndns.org)
Received: from silver.tanimura.dyndns.org (localhost [127.0.0.1])
	with ESMTP id h95C4JBX029367 ;	Sun, 5 Oct 2003 21:04:40 +0900 (JST)
Message-Id: <200310051204.h95C4JBX029367@silver.tanimura.dyndns.org>
Date: Sun, 05 Oct 2003 21:04:19 +0900
From: Seigo Tanimura <tanimura@tanimura.dyndns.org>
To: current@FreeBSD.org
User-Agent: Wanderlust/2.10.0 (Venus) SEMI/1.14.4 (Hosorogi) FLIM/1.14.4
 (=?ISO-8859-1?Q?Kashiharajing=FE-mae?=) APEL/10.4 MULE XEmacs/21.1 (patch
 14) (Cuyahoga Valley) (i386--freebsd)
Organization: My Home
MIME-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi")
Content-Type: text/plain; charset=US-ASCII
X-Spam-Status: No, hits=0.0 required=8.0
	tests=USER_AGENT
	version=2.55
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)
cc: Seigo Tanimura <tanimura@tanimura.dyndns.org>
Subject: Is pci a must on sparc64?
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
	<freebsd-current.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
	<mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current>
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
	<mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 05 Oct 2003 12:05:09 -0000

A sparc64 kernel without pci device fails to build.  The kernel is
configured for Ultra2 with no pci devices.

--- v --- log --- v ---
daiba% make
cc -c -O -pipe -g  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -I. -I../../.. -I../../../contrib/dev/acpica -I../../../contrib/ipfilter -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing  -mcmodel=medlow -msoft-float -ffreestanding -Werror  ../../../sparc64/sparc64/ofw_machdep.c
In file included from ../../../sparc64/sparc64/ofw_machdep.c:45:
../../../sparc64/pci/ofw_pci.h:41:24: ofw_pci_if.h: No such file or directory
*** Error code 1

Stop in /home/silver4/tanimura/p4-freefall/handoffpri/sparc64/compile/DAIBA.
daiba%
--- ^ --- log --- ^ ---

ofw_machdep.c unconditionally includes ofw_pci_if.h, even if pci
device is not configured.  Do I have to configure pci even for non-pci
machines?

-- 
Seigo Tanimura <tanimura@tanimura.dyndns.org> <tanimura@FreeBSD.org>