Subject: port-macppc/23604: -current kernel compilation fails on macppc due to global ata/wd* changes
To: None <gnats-bugs@gnats.netbsd.org>
From: Markus W Kilbinger <kilbi@rad.rwth-aachen.de>
List: netbsd-bugs
Date: 11/30/2003 22:40:35
>Number:         23604
>Category:       port-macppc
>Synopsis:       -current kernel compilation fails due to some wdc* changes elsewhere
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-macppc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 30 21:41:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6ZF
>Organization:
>Environment:
System: NetBSD mathilda 1.6ZF NetBSD 1.6ZF (MATHILDA) macppc
Architecture: powerpc
Machine: macppc
>Description:
	As far as I can see/investigate global changes from

  http://mail-index.netbsd.org/source-changes/2003/11/27/0036.html

seem to break compilation of -current kernels for macppc, at least if
using macppc's proper wdc/obio interface. At first stage compilation
stops at

  >> /usr/toolchain-powerpc/bin/powerpc--netbsd-gcc -msoft-float -ffreestanding -mcpu=7400 -O2 -pipe -Wreturn-type -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -Dmacppc -I. -I../../../../arch -I../../../.. -nostdinc -DUCONSOLE -DOFB_ENABLE_CACHE -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c ../../../../arch/macppc/macppc/autoconf.c
  >> In file included from ../../../../arch/macppc/macppc/autoconf.c:57:
  >> ../../../../dev/ic/wdcvar.h:63: error: `WDC_NREG' undeclared here (not in a function)

But adding the now probably missing wdcreg.h for inclusion yields more
incompatibilities with these changes, especially in using the
bus_space_* functions.
>How-To-Repeat:
Try to compile the GENERIC -current kernel for macppc
>Fix:
Guess macppc's proper wdc stuff has to be adapted to the global
ata/wd* changes?
>Release-Note:
>Audit-Trail:
>Unformatted: