NetBSD Problem Report #28953

From www@netbsd.org  Thu Jan 13 15:45:46 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 2723B63B843; Thu, 13 Jan 2005 15:45:46 +0000 (UTC)
Message-Id: <20050113154546.2723B63B843@narn.netbsd.org>
Date: Thu, 13 Jan 2005 15:45:46 +0000 (UTC)
From: netbsd@wolfnode.de
Reply-To: netbsd@wolfnode.de
To: gnats-bugs@netbsd.org
Subject: idesc.c kernel compilation error
X-Send-Pr-Version: www-1.0

>Number:         28953
>Category:       port-amiga
>Synopsis:       idesc.c kernel compilation error
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-amiga-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 13 15:48:00 +0000 2005
>Closed-Date:    Thu Jan 13 16:18:32 +0000 2005
>Last-Modified:  Thu Jan 13 16:18:32 +0000 2005
>Originator:     Florian Stoehr
>Release:        2.0
>Organization:
>Environment:
n/a (crossbuild)
>Description:
Compiling an amiga kernel containing idesc.c gives compilation errors, since file includes atareg.h and tries to redefine some defines of the header (failing).

Failes for any idesc kernel (including MDINSTALL from distribution).

Fixed by some undefs.
>How-To-Repeat:
Try to build the MDINSTALL amiga kernel or any other kernel with 

idesc0          at mainbus0             # A4000 & A1200 IDE
scsibus*        at idesc0

enabled and interfering devices disabled.


>Fix:
Index: sys/arch/amiga/dev/idesc.c
===================================================================
RCS file: /cvsroot/src/sys/arch/amiga/dev/idesc.c,v
retrieving revision 1.55
diff -u -r1.55 idesc.c
--- sys/arch/amiga/dev/idesc.c  28 Mar 2004 18:59:39 -0000      1.55
+++ sys/arch/amiga/dev/idesc.c  13 Jan 2005 15:20:10 -0000
@@ -194,6 +194,13 @@
 #define IDEI_IN                0x02            /* transfer to(1) to from(0) host */
 #define        IDEI_RELEASE    0x04            /* bus released until finished */

+/* Defined by atareg.h already, so #undef first */
+#undef PHASE_CMDOUT
+#undef PHASE_DATAIN
+#undef PHASE_DATAOUT
+#undef PHASE_COMPLETED
+#undef PHASE_ABORTED
+
 #define        PHASE_CMDOUT    (IDES_DRQ | IDEI_CMD)
 #define        PHASE_DATAIN    (IDES_DRQ | IDEI_IN)
 #define        PHASE_DATAOUT   (IDES_DRQ)

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: is@netbsd.org
State-Changed-When: Thu, 13 Jan 2005 16:18:32 +0000
State-Changed-Why:
idesc is dead code, and shall not be used any longer. (We have a
wdc attatchment).



>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.