diff options
| author | Ingo Molnar <mingo@elte.hu> | 2010-02-26 09:18:32 +0100 | 
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2010-02-26 09:18:32 +0100 | 
| commit | 64b9fb5704a479d98a59f2a1d45d3331a8f847f8 (patch) | |
| tree | 2b1052b05fa7615c817894bc9802bc5bb2af7ac1 /lib/dma-debug.c | |
| parent | 83f0d53993b2967e54186468b0fc4321447f68f1 (diff) | |
| parent | 60b341b778cc2929df16c0a504c91621b3c6a4ad (diff) | |
Merge commit 'v2.6.33' into tracing/core
Conflicts:
	scripts/recordmcount.pl
Merge reason: Merge up to v2.6.33.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'lib/dma-debug.c')
| -rw-r--r-- | lib/dma-debug.c | 9 | 
1 files changed, 4 insertions, 5 deletions
| diff --git a/lib/dma-debug.c b/lib/dma-debug.c index cf906201aec..ba8b67039d1 100644 --- a/lib/dma-debug.c +++ b/lib/dma-debug.c @@ -587,7 +587,7 @@ out_unlock:  	return count;  } -const struct file_operations filter_fops = { +static const struct file_operations filter_fops = {  	.read  = filter_read,  	.write = filter_write,  }; @@ -913,6 +913,9 @@ static void check_sync(struct device *dev,  				ref->size);  	} +	if (entry->direction == DMA_BIDIRECTIONAL) +		goto out; +  	if (ref->direction != entry->direction) {  		err_printk(dev, entry, "DMA-API: device driver syncs "  				"DMA memory with different direction " @@ -923,9 +926,6 @@ static void check_sync(struct device *dev,  				dir2name[ref->direction]);  	} -	if (entry->direction == DMA_BIDIRECTIONAL) -		goto out; -  	if (to_cpu && !(entry->direction == DMA_FROM_DEVICE) &&  		      !(ref->direction == DMA_TO_DEVICE))  		err_printk(dev, entry, "DMA-API: device driver syncs " @@ -948,7 +948,6 @@ static void check_sync(struct device *dev,  out:  	put_hash_bucket(bucket, &flags); -  }  void debug_dma_map_page(struct device *dev, struct page *page, size_t offset, | 
