public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] missing inline keyword for static function in linux/dmaengine.h
@ 2010-08-14 13:02 Mathieu Lacage
  2010-08-16  8:47 ` Dan Williams
  0 siblings, 1 reply; 2+ messages in thread
From: Mathieu Lacage @ 2010-08-14 13:02 UTC (permalink / raw)
  To: linux-kernel
  Cc: Dan Williams, Linus Walleij, Maciej Sosnowski, Mark Brown,
	Andre Noll

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

Signed-off-by: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>

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;
 }



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] missing inline keyword for static function in linux/dmaengine.h
  2010-08-14 13:02 [PATCH] missing inline keyword for static function in linux/dmaengine.h Mathieu Lacage
@ 2010-08-16  8:47 ` Dan Williams
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Williams @ 2010-08-16  8:47 UTC (permalink / raw)
  To: Mathieu Lacage
  Cc: linux-kernel, Linus Walleij, Maciej Sosnowski, Mark Brown,
	Andre Noll

On Sat, Aug 14, 2010 at 6:02 AM, Mathieu Lacage
<mathieu.lacage@sophia.inria.fr> wrote:
> Add a missing inline keyword for static function in linux/dmaengine.h to
> avoid duplicate symbol definitions.
>
> Signed-off-by: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>

Applied, thanks.

--
Dan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-16  8:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-14 13:02 [PATCH] missing inline keyword for static function in linux/dmaengine.h Mathieu Lacage
2010-08-16  8:47 ` Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox