Subject: kern/33920: opl.c doesn't compile with AUDIO_DEBUG after midi changes
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <g.mcgarry@ieee.org>
List: netbsd-bugs
Date: 07/05/2006 01:45:00
>Number:         33920
>Category:       kern
>Synopsis:       opl.c doesn't compile with AUDIO_DEBUG after midi changes
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 05 01:45:00 +0000 2006
>Originator:     Gregory McGarry
>Release:        NetBSD-current
>Organization:
>Environment:
NetBSD-current/i386
>Description:
cc -ffreestanding -fno-zero-initialized-in-bss -g -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -Di386 -I. -I/usr/src/sys/../common/include -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DAUDIO_DEBUG=0xf -DDIAGNOSTIC -DDEBUG -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad -I/usr/src/sys/lib/libkern/../../../common/lib/libc/string -I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string -c /usr/src/sys/dev/ic/opl.c
/usr/src/sys/dev/ic/opl.c: In function `oplsyn_releasev':
/usr/src/sys/dev/ic/opl.c:620: warning: implicit declaration of function `MIDISYN_FREQ_TO_HZ'
/usr/src/sys/dev/ic/opl.c:620: error: `note' undeclared (first use in this function)
/usr/src/sys/dev/ic/opl.c:620: error: (Each undeclared identifier is reported only once
/usr/src/sys/dev/ic/opl.c:620: error: for each function it appears in.)
/usr/src/sys/dev/ic/opl.c: In function `oplsyn_ctlnotice':
/usr/src/sys/dev/ic/opl.c:638: error: `sc' undeclared (first use in this function)

>How-To-Repeat:
compile with AUDIO_DEBUG
>Fix:
Remove lines 620 and 638.