From owner-freebsd-bugs Sun Jan 28 9:17:34 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2CA2337B699 for ; Sun, 28 Jan 2001 09:00:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0SH02f03007; Sun, 28 Jan 2001 09:00:02 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A67DC37B400 for ; Sun, 28 Jan 2001 08:58:59 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0SGwxC02937; Sun, 28 Jan 2001 08:58:59 -0800 (PST) (envelope-from nobody) Message-Id: <200101281658.f0SGwxC02937@freefall.freebsd.org> Date: Sun, 28 Jan 2001 08:58:59 -0800 (PST) From: gwna@geocities.co.jp To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/24696: compile error while defines DEB(x) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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