Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc Use ANSI prototype for _bus_dmamem_...
details: https://anonhg.NetBSD.org/src/rev/2dc6766ced14
branches: trunk
changeset: 773326:2dc6766ced14
user: matt <matt%NetBSD.org@localhost>
date: Mon Jan 30 23:34:15 2012 +0000
description:
Use ANSI prototype for _bus_dmamem_alloc_range.
Caught when compiling with -Wold-style-definition
diffstat:
sys/arch/powerpc/powerpc/bus_dma.c | 25 +++++++++++++------------
1 files changed, 13 insertions(+), 12 deletions(-)
diffs (46 lines):
diff -r 2f214b7b8be1 -r 2dc6766ced14 sys/arch/powerpc/powerpc/bus_dma.c
--- a/sys/arch/powerpc/powerpc/bus_dma.c Mon Jan 30 23:31:27 2012 +0000
+++ b/sys/arch/powerpc/powerpc/bus_dma.c Mon Jan 30 23:34:15 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_dma.c,v 1.44 2011/07/19 19:55:23 matt Exp $ */
+/* $NetBSD: bus_dma.c,v 1.45 2012/01/30 23:34:15 matt Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
#define _POWERPC_BUS_DMA_PRIVATE
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.44 2011/07/19 19:55:23 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.45 2012/01/30 23:34:15 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -701,16 +701,17 @@
* Called by DMA-safe memory allocation methods.
*/
int
-_bus_dmamem_alloc_range(t, size, alignment, boundary, segs, nsegs, rsegs,
- flags, low, high)
- bus_dma_tag_t t;
- bus_size_t size, alignment, boundary;
- bus_dma_segment_t *segs;
- int nsegs;
- int *rsegs;
- int flags;
- paddr_t low;
- paddr_t high;
+_bus_dmamem_alloc_range(
+ bus_dma_tag_t t,
+ bus_size_t size,
+ bus_size_t alignment,
+ bus_size_t boundary,
+ bus_dma_segment_t *segs,
+ int nsegs,
+ int *rsegs,
+ int flags,
+ paddr_t low,
+ paddr_t high)
{
paddr_t curaddr, lastaddr;
struct vm_page *m;
Home |
Main Index |
Thread Index |
Old Index