Subject: kern/27159: fail to compile sys/arch/arm/arm32/bus_dma.c with DEBUG_DMA
To: None <gnats-bugs@gnats.NetBSD.org>
From: Hiroki Nakano <cas@trans-nt.com>
List: netbsd-bugs
Date: 10/06/2004 14:31:51
>Number:         27159
>Category:       kern
>Synopsis:       fail to compile sys/arch/arm/arm32/bus_dma.c with DEBUG_DMA
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 06 05:59:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Hiroki Nakano
>Release:        NetBSD 2.0G
>Organization:
	Trans New Technology, Inc.
>Environment:
System: NetBSD Ar.atoms.mt.trans-nt.com 2.0G NetBSD 2.0G (GENERIC.ehci) #0: Tue Aug 24 17:45:57 JST 2004 taka@Ar.atoms.mt.trans-nt.com:/usr/src/sys/arch/i386/compile/GENERIC.ehci i386
Architecture: arm
Machine: arm
>Description:
	we can't compile sys/arch/arm/arm32/bus_dma.c with DEBUG_DMA.
>How-To-Repeat:
	just compile it!
>Fix:
	There is a patch below.

--- sys/arch/arm/arm32/bus_dma.c        17 Jul 2004 00:58:08 -0000      1.1.1.1
+++ sys/arch/arm/arm32/bus_dma.c        6 Oct 2004 03:31:01 -0000
@@ -875,8 +875,8 @@
        pt_entry_t *ptep;

 #ifdef DEBUG_DMA
-       printf("_bus_dmamem_load_buffer(buf=%p, len=%lx, flags=%d, 1st=%d)\n",
-           buf, buflen, flags, first);
+       printf("_bus_dmamem_load_buffer(buf=%p, len=%lx, flags=%d)\n",
+           buf, buflen, flags);
 #endif /* DEBUG_DMA */

        if (p != NULL)
>Release-Note:
>Audit-Trail:
>Unformatted: