Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/mips Fix build for non-_MIPS_NEED_BUS_DMA_BOUN...



details:   https://anonhg.NetBSD.org/src/rev/6636e57343ac
branches:  trunk
changeset: 949272:6636e57343ac
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Jan 07 17:28:20 2021 +0000

description:
Fix build for non-_MIPS_NEED_BUS_DMA_BOUNCE platforms

diffstat:

 sys/arch/mips/mips/bus_dma.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 6fc5d51b2765 -r 6636e57343ac sys/arch/mips/mips/bus_dma.c
--- a/sys/arch/mips/mips/bus_dma.c      Thu Jan 07 16:03:08 2021 +0000
+++ b/sys/arch/mips/mips/bus_dma.c      Thu Jan 07 17:28:20 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_dma.c,v 1.43 2021/01/04 18:09:01 thorpej Exp $     */
+/*     $NetBSD: bus_dma.c,v 1.44 2021/01/07 17:28:20 skrll Exp $       */
 
 /*-
  * Copyright (c) 1997, 1998, 2001, 2020 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.43 2021/01/04 18:09:01 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.44 2021/01/07 17:28:20 skrll Exp $");
 
 #define _MIPS_BUS_DMA_PRIVATE
 
@@ -293,6 +293,7 @@
            (sizeof(bus_dma_segment_t) * (nsegments - 1));
 }
 
+#ifdef _MIPS_NEED_BUS_DMA_BOUNCE
 static size_t
 _bus_dmamap_cookiesize(int const nsegments)
 {
@@ -300,6 +301,7 @@
        return sizeof(struct mips_bus_dma_cookie) +
            (sizeof(bus_dma_segment_t) * nsegments);
 }
+#endif
 
 /*
  * Common function for DMA map creation.  May be called by bus-specific



Home | Main Index | Thread Index | Old Index