Skip to content

Commit 9cd1a16

Browse files
committed
async_xor: Remove unused 'async_xor_val'
JIRA: https://issues.redhat.com/browse/RHEL-83988 commit 20238d4 Author: Dr. David Alan Gilbert <[email protected]> Date: Sun Sep 29 14:21:48 2024 +0100 async_xor: Remove unused 'async_xor_val' async_xor_val has been unused since commit a7c224a ("md/raid5: convert to new xor compution interface") Remove it. Signed-off-by: Dr. David Alan Gilbert <[email protected]> Signed-off-by: Herbert Xu <[email protected]> Signed-off-by: Nigel Croxon <[email protected]>
1 parent b26d49e commit 9cd1a16

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

crypto/async_tx/async_xor.c

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -389,32 +389,6 @@ async_xor_val_offs(struct page *dest, unsigned int offset,
389389
}
390390
EXPORT_SYMBOL_GPL(async_xor_val_offs);
391391

392-
/**
393-
* async_xor_val - attempt a xor parity check with a dma engine.
394-
* @dest: destination page used if the xor is performed synchronously
395-
* @src_list: array of source pages
396-
* @offset: offset in pages to start transaction
397-
* @src_cnt: number of source pages
398-
* @len: length in bytes
399-
* @result: 0 if sum == 0 else non-zero
400-
* @submit: submission / completion modifiers
401-
*
402-
* honored flags: ASYNC_TX_ACK
403-
*
404-
* src_list note: if the dest is also a source it must be at index zero.
405-
* The contents of this array will be overwritten if a scribble region
406-
* is not specified.
407-
*/
408-
struct dma_async_tx_descriptor *
409-
async_xor_val(struct page *dest, struct page **src_list, unsigned int offset,
410-
int src_cnt, size_t len, enum sum_check_flags *result,
411-
struct async_submit_ctl *submit)
412-
{
413-
return async_xor_val_offs(dest, offset, src_list, NULL, src_cnt,
414-
len, result, submit);
415-
}
416-
EXPORT_SYMBOL_GPL(async_xor_val);
417-
418392
MODULE_AUTHOR("Intel Corporation");
419393
MODULE_DESCRIPTION("asynchronous xor/xor-zero-sum api");
420394
MODULE_LICENSE("GPL");

include/linux/async_tx.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,6 @@ async_xor_offs(struct page *dest, unsigned int offset,
167167
struct page **src_list, unsigned int *src_offset,
168168
int src_cnt, size_t len, struct async_submit_ctl *submit);
169169

170-
struct dma_async_tx_descriptor *
171-
async_xor_val(struct page *dest, struct page **src_list, unsigned int offset,
172-
int src_cnt, size_t len, enum sum_check_flags *result,
173-
struct async_submit_ctl *submit);
174-
175170
struct dma_async_tx_descriptor *
176171
async_xor_val_offs(struct page *dest, unsigned int offset,
177172
struct page **src_list, unsigned int *src_offset,

0 commit comments

Comments
 (0)