Skip to contentSkip to conversation

missing inline keyword for static function in linux/dmaengine.h

PATCH Applied Mathieu Lacage 2 participants 2 messages Aug 14, 2010 – Aug 16, 2010 dmaengine

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 missing inline keyword for static function in linux/dmaengine.h

Add a missing inline keyword for static function in linux/dmaengine.h to avoid duplicate symbol definitions.

include/linux/dmaengine.h +1 -1
index 5204f01..57d2b76 100644
@@ -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;
 }