Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Dec 2012 18:35:45 +0000 (UTC)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r244035 - projects/physbio/sys/sparc64/sparc64
Message-ID:  <201212081835.qB8IZjY5093834@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jeff
Date: Sat Dec  8 18:35:45 2012
New Revision: 244035
URL: http://svnweb.freebsd.org/changeset/base/244035

Log:
   - Correct a few compile errors, dmat is spelled dt, unused variable, etc.
  
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  projects/physbio/sys/sparc64/sparc64/bus_machdep.c
  projects/physbio/sys/sparc64/sparc64/iommu.c

Modified: projects/physbio/sys/sparc64/sparc64/bus_machdep.c
==============================================================================
--- projects/physbio/sys/sparc64/sparc64/bus_machdep.c	Sat Dec  8 17:41:39 2012	(r244034)
+++ projects/physbio/sys/sparc64/sparc64/bus_machdep.c	Sat Dec  8 18:35:45 2012	(r244035)
@@ -410,7 +410,7 @@ nexus_dmamap_mayblock(bus_dma_tag_t dmat
 
 }
 
-void
+static void
 nexus_dmamap_complete(bus_dma_tag_t dmat, bus_dmamap_t map,
     bus_dmamap_callback_t *callback, void *callback_arg, int nsegs, int error)
 {

Modified: projects/physbio/sys/sparc64/sparc64/iommu.c
==============================================================================
--- projects/physbio/sys/sparc64/sparc64/iommu.c	Sat Dec  8 17:41:39 2012	(r244034)
+++ projects/physbio/sys/sparc64/sparc64/iommu.c	Sat Dec  8 18:35:45 2012	(r244035)
@@ -860,7 +860,6 @@ iommu_dvmamap_load_buffer(bus_dma_tag_t 
 	vm_offset_t vaddr, voffs;
 	vm_paddr_t curaddr;
 	int error, firstpg, sgcnt;
-	int first;
 	u_int slot;
 
 	is = dt->dt_cookie;
@@ -977,7 +976,7 @@ iommu_dvmamap_mayblock(bus_dma_tag_t dma
 }
 
 static void
-iommu_dvmamap_complete(bus_dma_tag_t dmat, bus_dmamap_t map,
+iommu_dvmamap_complete(bus_dma_tag_t dt, bus_dmamap_t map,
     bus_dmamap_callback_t *callback, void *callback_arg, int nsegs, int error)
 {
 	struct iommu_state *is = dt->dt_cookie;
@@ -996,7 +995,7 @@ iommu_dvmamap_complete(bus_dma_tag_t dma
 }
 
 static void
-iommu_dvmamap_complete2(bus_dma_tag_t dmat, bus_dmamap_t map,
+iommu_dvmamap_complete2(bus_dma_tag_t dt, bus_dmamap_t map,
     bus_dmamap_callback2_t *callback, void *callback_arg, int nsegs,
     bus_size_t len, int error)
 {
@@ -1016,7 +1015,7 @@ iommu_dvmamap_complete2(bus_dma_tag_t dm
 }
 
 static void
-iommu_dvmamap_directseg(bus_dma_tag_t dmat, bus_dmamap_t map,
+iommu_dvmamap_directseg(bus_dma_tag_t dt, bus_dmamap_t map,
     bus_dma_segment_t *segs, int nsegs, int error)
 {
 	struct iommu_state *is = dt->dt_cookie;
@@ -1030,7 +1029,6 @@ iommu_dvmamap_directseg(bus_dma_tag_t dm
 		IS_UNLOCK(is);
 		map->dm_flags |= DMF_LOADED;
 	}
-	return (error);
 }
 
 static void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212081835.qB8IZjY5093834>