diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/algapi.c | 11 | ||||
-rw-r--r-- | crypto/async_tx/async_xor.c | 2 |
2 files changed, 10 insertions, 3 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c index feb77e4bbb48..f149b1c8b76d 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c | |||
@@ -820,7 +820,7 @@ out: | |||
820 | } | 820 | } |
821 | EXPORT_SYMBOL_GPL(crypto_enqueue_request); | 821 | EXPORT_SYMBOL_GPL(crypto_enqueue_request); |
822 | 822 | ||
823 | struct crypto_async_request *crypto_dequeue_request(struct crypto_queue *queue) | 823 | void *__crypto_dequeue_request(struct crypto_queue *queue, unsigned int offset) |
824 | { | 824 | { |
825 | struct list_head *request; | 825 | struct list_head *request; |
826 | 826 | ||
@@ -835,7 +835,14 @@ struct crypto_async_request *crypto_dequeue_request(struct crypto_queue *queue) | |||
835 | request = queue->list.next; | 835 | request = queue->list.next; |
836 | list_del(request); | 836 | list_del(request); |
837 | 837 | ||
838 | return list_entry(request, struct crypto_async_request, list); | 838 | return (char *)list_entry(request, struct crypto_async_request, list) - |
839 | offset; | ||
840 | } | ||
841 | EXPORT_SYMBOL_GPL(__crypto_dequeue_request); | ||
842 | |||
843 | struct crypto_async_request *crypto_dequeue_request(struct crypto_queue *queue) | ||
844 | { | ||
845 | return __crypto_dequeue_request(queue, 0); | ||
839 | } | 846 | } |
840 | EXPORT_SYMBOL_GPL(crypto_dequeue_request); | 847 | EXPORT_SYMBOL_GPL(crypto_dequeue_request); |
841 | 848 | ||
diff --git a/crypto/async_tx/async_xor.c b/crypto/async_tx/async_xor.c index 95fe2c8d6c51..90dd3f8bd283 100644 --- a/crypto/async_tx/async_xor.c +++ b/crypto/async_tx/async_xor.c | |||
@@ -300,7 +300,7 @@ EXPORT_SYMBOL_GPL(async_xor_zero_sum); | |||
300 | 300 | ||
301 | static int __init async_xor_init(void) | 301 | static int __init async_xor_init(void) |
302 | { | 302 | { |
303 | #ifdef CONFIG_DMA_ENGINE | 303 | #ifdef CONFIG_ASYNC_TX_DMA |
304 | /* To conserve stack space the input src_list (array of page pointers) | 304 | /* To conserve stack space the input src_list (array of page pointers) |
305 | * is reused to hold the array of dma addresses passed to the driver. | 305 | * is reused to hold the array of dma addresses passed to the driver. |
306 | * This conversion is only possible when dma_addr_t is less than the | 306 | * This conversion is only possible when dma_addr_t is less than the |