Date: Sun, 28 Jan 2001 08:58:59 -0800 (PST) From: gwna@geocities.co.jp To: freebsd-gnats-submit@FreeBSD.org Subject: kern/24696: compile error while defines DEB(x) Message-ID: <200101281658.f0SGwxC02937@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 24696
>Category: kern
>Synopsis: compile error while defines DEB(x)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Jan 28 09:00:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Hirokazu WATANABE
>Release: FreeBSD 4.2-RELEASE
>Organization:
>Environment:
FreeBSD nike.private 4.2-RELEASE FreeBSD 4.2-RELEASE #27: Sun Jan 28 14:13:19 JST 2001 watanabe@nike@private:/usr/src/sys/compile/NIKE i386
>Description:
Compile error occurs in sys/dev/sound/isa/{ess,sb}.c.
It uses struct "d", but no "d" is defined in that sources.
I think it must be "sc" and "sb".
>How-To-Repeat:
o Adds a sentence of "device pcm" into kernel configuration file.
o Adds "#define DEB(x) x" into sys/dev/sound/pcm/sound.h.
o Chdir compile/XXX, then make!
>Fix:
$FreeBSD: src/sys/dev/sound/isa/ess.c,v 1.3.2.2 2000/10/05 05:07:49 cg Exp
*** ess.c.org Thu Oct 5 14:07:49 2000
--- ess.c Mon Jan 29 01:36:40 2001
***************
*** 302,308 ****
ess_wr(sc, SBDSP_RST, 0);
if (ess_get_byte(sc) != 0xAA) {
DEB(printf("ess_reset_dsp 0x%lx failed\n",
! rman_get_start(d->io_base)));
return ENXIO; /* Sorry */
}
ess_cmd(sc, 0xc6);
--- 302,308 ----
ess_wr(sc, SBDSP_RST, 0);
if (ess_get_byte(sc) != 0xAA) {
DEB(printf("ess_reset_dsp 0x%lx failed\n",
! rman_get_start(sc->io_base)));
return ENXIO; /* Sorry */
}
ess_cmd(sc, 0xc6);
$FreeBSD: src/sys/dev/sound/isa/sb.c,v 1.50.2.3 2000/10/05 05:07:49 cg Exp
*** sb.c.org Thu Oct 5 14:07:49 2000
--- sb.c Mon Jan 29 01:37:20 2001
***************
*** 319,325 ****
sb_wr(sb, SBDSP_RST, 0);
if (sb_get_byte(sb) != 0xAA) {
DEB(printf("sb_reset_dsp 0x%lx failed\n",
! rman_get_start(d->io_base)));
return ENXIO; /* Sorry */
}
if (sb->bd_flags & BD_F_ESS)
--- 319,325 ----
sb_wr(sb, SBDSP_RST, 0);
if (sb_get_byte(sb) != 0xAA) {
DEB(printf("sb_reset_dsp 0x%lx failed\n",
! rman_get_start(sb->io_base)));
return ENXIO; /* Sorry */
}
if (sb->bd_flags & BD_F_ESS)
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101281658.f0SGwxC02937>
