Skip to content

Commit dcfe653

Browse files
committed
dm: Remove completion function scaffolding
This patch removes the temporary scaffolding now that the comletion function signature has been converted. Signed-off-by: Herbert Xu <[email protected]> Acked-by: Mike Snitzer <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 255e48e commit dcfe653

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

drivers/md/dm-crypt.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,7 @@ static int crypt_convert_block_skcipher(struct crypt_config *cc,
14581458
return r;
14591459
}
14601460

1461-
static void kcryptd_async_done(crypto_completion_data_t *async_req, int error);
1461+
static void kcryptd_async_done(void *async_req, int error);
14621462

14631463
static int crypt_alloc_req_skcipher(struct crypt_config *cc,
14641464
struct convert_context *ctx)
@@ -2146,9 +2146,9 @@ static void kcryptd_crypt_read_convert(struct dm_crypt_io *io)
21462146
crypt_dec_pending(io);
21472147
}
21482148

2149-
static void kcryptd_async_done(crypto_completion_data_t *data, int error)
2149+
static void kcryptd_async_done(void *data, int error)
21502150
{
2151-
struct dm_crypt_request *dmreq = crypto_get_completion_data(data);
2151+
struct dm_crypt_request *dmreq = data;
21522152
struct convert_context *ctx = dmreq->ctx;
21532153
struct dm_crypt_io *io = container_of(ctx, struct dm_crypt_io, ctx);
21542154
struct crypt_config *cc = io->cc;

drivers/md/dm-integrity.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,9 +955,9 @@ static void xor_journal(struct dm_integrity_c *ic, bool encrypt, unsigned sectio
955955
async_tx_issue_pending_all();
956956
}
957957

958-
static void complete_journal_encrypt(crypto_completion_data_t *data, int err)
958+
static void complete_journal_encrypt(void *data, int err)
959959
{
960-
struct journal_completion *comp = crypto_get_completion_data(data);
960+
struct journal_completion *comp = data;
961961
if (unlikely(err)) {
962962
if (likely(err == -EINPROGRESS)) {
963963
complete(&comp->ic->crypto_backoff);

0 commit comments

Comments
 (0)