[PATCH] missing inline keyword for static function inlinux/dmaengine.h
From: Mathieu Lacage
Date: Sat Aug 14 2010 - 09:12:40 EST
Add a missing inline keyword for static function in linux/dmaengine.h to
avoid duplicate symbol definitions.
Signed-off-by: Mathieu Lacage <mathieu.lacage@xxxxxxxxxxxxxxx>
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h
index 5204f01..57d2b76 100644
--- a/include/linux/dmaengine.h
+++ b/include/linux/dmaengine.h
@@ -477,7 +477,7 @@ static inline bool dma_dev_has_pq_continue(struct dma_device *dma)
return (dma->max_pq & DMA_HAS_PQ_CONTINUE) == DMA_HAS_PQ_CONTINUE;
}
-static unsigned short dma_dev_to_maxpq(struct dma_device *dma)
+static inline unsigned short dma_dev_to_maxpq(struct dma_device *dma)
{
return dma->max_pq & ~DMA_HAS_PQ_CONTINUE;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/