Module Name:    src
Committed By:   cliff
Date:           Thu Dec  3 22:36:56 UTC 2009

Modified Files:
        src/sys/arch/mips/mips [matt-nb5-mips64]:
            bus_space_alignstride_chipdep.c

Log Message:
fix unused var warning when _LP64 is defined and CHIP_EXTENT is undefined


To generate a diff of this commit:
cvs rdiff -u -r1.10.18.9 -r1.10.18.10 \
    src/sys/arch/mips/mips/bus_space_alignstride_chipdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/mips/bus_space_alignstride_chipdep.c
diff -u src/sys/arch/mips/mips/bus_space_alignstride_chipdep.c:1.10.18.9 src/sys/arch/mips/mips/bus_space_alignstride_chipdep.c:1.10.18.10
--- src/sys/arch/mips/mips/bus_space_alignstride_chipdep.c:1.10.18.9	Sun Nov 22 00:30:07 2009
+++ src/sys/arch/mips/mips/bus_space_alignstride_chipdep.c	Thu Dec  3 22:36:56 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_space_alignstride_chipdep.c,v 1.10.18.9 2009/11/22 00:30:07 cliff Exp $ */
+/* $NetBSD: bus_space_alignstride_chipdep.c,v 1.10.18.10 2009/12/03 22:36:56 cliff Exp $ */
 
 /*-
  * Copyright (c) 1998, 2000, 2001 The NetBSD Foundation, Inc.
@@ -81,7 +81,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_space_alignstride_chipdep.c,v 1.10.18.9 2009/11/22 00:30:07 cliff Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_space_alignstride_chipdep.c,v 1.10.18.10 2009/12/03 22:36:56 cliff Exp $");
 
 #ifdef CHIP_EXTENT
 #include <sys/extent.h>
@@ -793,8 +793,9 @@
 void
 __BS(unmap)(void *v, bus_space_handle_t h, bus_size_t size, int acct)
 {
+#if !defined(_LP64) || defined(CHIP_EXTENT)
 	bus_addr_t addr = 0;	/* initialize to appease gcc */
-
+#endif
 #ifndef _LP64
 	bool handle_is_kseg2;
 

Reply via email to