From 42efb3639a758d4c3fdc63da7982da0d84e11545 Mon Sep 17 00:00:00 2001 From: fvdl Date: Mon, 4 Dec 2000 20:12:10 +0000 Subject: [PATCH] Avoid a warning in bus_dmamap_load_uio by inserting a 'return 0' for good measure in this unimplemented function. --- sys/arch/sparc64/sparc64/machdep.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c index bd37431eaba3..f736e45fe224 100644 --- a/sys/arch/sparc64/sparc64/machdep.c +++ b/sys/arch/sparc64/sparc64/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.92 2000/12/04 17:26:41 eeh Exp $ */ +/* $NetBSD: machdep.c,v 1.93 2000/12/04 20:12:10 fvdl Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. @@ -1252,6 +1252,8 @@ _bus_dmamap_load_uio(t, map, uio, flags) bus_dmamap_load(t, map, buf, buflen, p, flags); } panic("_bus_dmamap_load_uio: not implemented"); +#else + return 0; #endif }