Skip to contentSkip to conversation

mn10300: Wire up mn10300_dma_supported

PATCH In review Guenter Roeck 2 participants 2 messages Jan 26, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mn10300: Wire up mn10300_dma_supported

From: Guenter Roeck <[email protected]>

Commit f151341ca00e ("mn10300: convert to dma_map_ops") declares mn10300_dma_supported, but does not wire it up. This results in the following build warning.

arch/mn10300/mm/dma-alloc.c: warning:
'mn10300_dma_supported' defined but not used

Fixes f151341ca00e ("mn10300: convert to dma_map_ops")
Cc Christoph Hellwig <[email protected]>
---
 arch/mn10300/mm/dma-alloc.c | 1 +
 1 file changed, 1 insertion(+)
arch/mn10300/mm/dma-alloc.c +1 -0
index 8842394cb49a..5ff49d67f55a 100644
@@ -128,4 +128,5 @@ struct dma_map_ops mn10300_dma_ops = {
 	.map_sg			= mn10300_dma_map_sg,
 	.sync_single_for_device	= mn10300_dma_sync_single_for_device,
 	.sync_sg_for_device	= mn10300_dma_sync_sg_for_device,
+	.dma_supported		= mn10300_dma_supported,
 };
Signature · 1 line
2.1.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Guenter Roeck

From: Guenter Roeck <[email protected]>

Commit f151341ca00e ("mn10300: convert to dma_map_ops") declares mn10300_dma_supported, but does not wire it up. This results in the following build warning.

arch/mn10300/mm/dma-alloc.c: warning:
'mn10300_dma_supported' defined but not used

Thanks for catching this!