Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140281
b: refs/heads/master
c: 06164f3
h: refs/heads/master
i:
  140279: 39784a4
v: v3
  • Loading branch information
Dan Williams committed Mar 25, 2009
1 parent 3f2f861 commit ef50521
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 54aee6a5f560d0e1bf3f39987c6ebe06daeb0ce1
refs/heads/master: 06164f3194e01ea4c76941ac60f541d656c8975f
7 changes: 2 additions & 5 deletions trunk/crypto/async_tx/async_xor.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,8 @@
#include <linux/raid/xor.h>
#include <linux/async_tx.h>

/* do_async_xor - dma map the pages and perform the xor with an engine.
* This routine is marked __always_inline so it can be compiled away
* when CONFIG_DMA_ENGINE=n
*/
static __always_inline struct dma_async_tx_descriptor *
/* do_async_xor - dma map the pages and perform the xor with an engine */
static __async_inline struct dma_async_tx_descriptor *
do_async_xor(struct dma_chan *chan, struct page *dest, struct page **src_list,
unsigned int offset, int src_cnt, size_t len,
enum async_tx_flags flags,
Expand Down
9 changes: 9 additions & 0 deletions trunk/include/linux/async_tx.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@
#include <linux/spinlock.h>
#include <linux/interrupt.h>

/* on architectures without dma-mapping capabilities we need to ensure
* that the asynchronous path compiles away
*/
#ifdef CONFIG_HAS_DMA
#define __async_inline
#else
#define __async_inline __always_inline
#endif

/**
* dma_chan_ref - object used to manage dma channels received from the
* dmaengine core.
Expand Down

0 comments on commit ef50521

Please sign in to comment.