Subject: kern/13508: yds.c does not compile on 1.5.1 alpha
To: None <gnats-bugs@gnats.netbsd.org>
From: ITOH Yasufumi <itohy@netbsd.org>
List: netbsd-bugs
Date: 07/19/2001 09:16:49
>Number:         13508
>Category:       kern
>Synopsis:       yds.c does not compile on 1.5.1 alpha
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 18 17:14:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     ITOH Yasufumi
>Release:        NetBSD 1.5.1
>Organization:
>Environment:
System: NetBSD ucharmax.my.domain 1.5.1 NetBSD 1.5.1 (UCHARMAX) #1: Sun Jul 15 15:13:27 JST 2001 itohy@ucharmax.my.domain:/usr/src/sys/arch/alpha/compile/UCHARMAX alpha
machine: AlphaStation 255

>Description:
	On NetBSD/alpha 1.5.1, if the DS-1 audio device is configured,
	the kernel does not compile.

>How-To-Repeat:
	Add following lines to your kernel config file.

yds*	at	pci? dev ? function ?
audio*	at	yds?
opl*	at	yds?
mpu*	at	yds?
midi*	at	opl?
midi*	at	mpu?

	Then, build the kernel.

% make depend && make
	:
../../../../dev/pci/yds.c: In function `yds_attach':
../../../../dev/pci/yds.c:668: structure has no member named `pc_intr_map'
../../../../dev/pci/yds.c:668: structure has no member named `pc_intr_v'

>Fix:
	Apply this change to netbsd-1-5 branch.

diff -uF^[a-zA-Z_][a-z 	A-Z0-9_]*([^;]*$ sys/dev/pci/yds.c.orig sys/dev/pci/yds.c
--- sys/dev/pci/yds.c.orig	Sun May 27 02:13:55 2001
+++ sys/dev/pci/yds.c	Sun Jul 15 13:18:39 2001
@@ -665,7 +665,7 @@ yds_attach(parent, self, aux)
 	}
 
 	/* Map and establish the interrupt. */
-	if (pci_intr_map(pa, pa->pa_intrtag, pa->pa_intrpin,
+	if (pci_intr_map(pc, pa->pa_intrtag, pa->pa_intrpin,
 			 pa->pa_intrline, &ih)) {
 		printf("%s: couldn't map interrupt\n", sc->sc_dev.dv_xname);
 		return;
>Release-Note:
>Audit-Trail:
>Unformatted: