crypto/hash-afalg: Fix broken build
PATCH 1/1 crypto/hash-afalg: Fix broken build
Fux build broken by semantic conflict with commit 8f525028bc6 (qapi/crypto: Rename QCryptoAFAlg to QCryptoAFAlgo).
--- crypto/hash-afalg.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
crypto/hash-afalg.c +5 -5
@@ -142,7 +142,7 @@ QCryptoHash *qcrypto_afalg_hash_new(QCryptoHashAlgo alg, Error **errp)static void qcrypto_afalg_hash_free (QCryptoHash *hash) { -QCryptoAFAlg *ctx = hash->opaque; +QCryptoAFAlgo *ctx = hash->opaque;if (ctx) {qcrypto_afalg_comm_free (ctx);
@@ -159,7 +159,7 @@ void qcrypto_afalg_hash_free(QCryptoHash *hash)* be provided to calculate the final hash. */ static -int qcrypto_afalg_send_to_kernel(QCryptoAFAlg *afalg, +int qcrypto_afalg_send_to_kernel(QCryptoAFAlgo *afalg, const struct iovec *iov, size_t niov, bool more_data,
@@ -183,7 +183,7 @@ int qcrypto_afalg_send_to_kernel(QCryptoAFAlg *afalg, } static -int qcrypto_afalg_recv_from_kernel(QCryptoAFAlg *afalg, +int qcrypto_afalg_recv_from_kernel(QCryptoAFAlgo *afalg, QCryptoHashAlgo alg, uint8_t **result, size_t *result_len,
@@ -222,7 +222,7 @@ int qcrypto_afalg_hash_update(QCryptoHash *hash,size_t niov, Error **errp) { - return qcrypto_afalg_send_to_kernel((QCryptoAFAlg *) hash->opaque, + return qcrypto_afalg_send_to_kernel((QCryptoAFAlgo *) hash->opaque, iov, niov, true, errp); }
@@ -232,7 +232,7 @@ int qcrypto_afalg_hash_finalize(QCryptoHash *hash,size_t *result_len, Error **errp) { - return qcrypto_afalg_recv_from_kernel((QCryptoAFAlg *) hash->opaque, + return qcrypto_afalg_recv_from_kernel((QCryptoAFAlgo *) hash->opaque, hash->alg, result, result_len, errp); }
Signature · 1 line
2.46.0
Quoted 5 lines · Markus Armbruster
Fux build broken by semantic conflict with commit
8f525028bc6(qapi/crypto: Rename QCryptoAFAlg to QCryptoAFAlgo).Fixes 90c3dc60735a (crypto/hash-afalg: Implement new hash API)Signed-off-by Markus Armbruster <[email protected]>
My bad :/ Obviously, I didn't catch this at compile time, nor did CI.
Thanks,
C.
Quoted 53 lines
--- crypto/hash-afalg.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)crypto/hash-afalg.c +5
-5@@ -142,7 +142,7 @@ QCryptoHash *qcrypto_afalg_hash_new(QCryptoHashAlgo alg, Error **errp)static void qcrypto_afalg_hash_free (QCryptoHash *hash) { -QCryptoAFAlg *ctx = hash->opaque; +QCryptoAFAlgo *ctx = hash->opaque;if (ctx) {qcrypto_afalg_comm_free (ctx);@@ -159,7 +159,7 @@ void qcrypto_afalg_hash_free(QCryptoHash *hash)* be provided to calculate the final hash. */ static -int qcrypto_afalg_send_to_kernel(QCryptoAFAlg *afalg, +int qcrypto_afalg_send_to_kernel(QCryptoAFAlgo *afalg, const struct iovec *iov, size_t niov, bool more_data,@@ -183,7 +183,7 @@ int qcrypto_afalg_send_to_kernel(QCryptoAFAlg *afalg, } static -int qcrypto_afalg_recv_from_kernel(QCryptoAFAlg *afalg, +int qcrypto_afalg_recv_from_kernel(QCryptoAFAlgo *afalg, QCryptoHashAlgo alg, uint8_t **result, size_t *result_len,@@ -222,7 +222,7 @@ int qcrypto_afalg_hash_update(QCryptoHash *hash,size_t niov, Error **errp) { - return qcrypto_afalg_send_to_kernel((QCryptoAFAlg *) hash->opaque, + return qcrypto_afalg_send_to_kernel((QCryptoAFAlgo *) hash->opaque, iov, niov, true, errp); }@@ -232,7 +232,7 @@ int qcrypto_afalg_hash_finalize(QCryptoHash *hash,size_t *result_len, Error **errp) { - return qcrypto_afalg_recv_from_kernel((QCryptoAFAlg *) hash->opaque, + return qcrypto_afalg_recv_from_kernel((QCryptoAFAlgo *) hash->opaque, hash->alg, result, result_len, errp); }
Quoted 7 lines · Cédric Le Goater
Quoted 4 lines · Markus Armbruster
Fux build broken by semantic conflict with commit
8f525028bc6(qapi/crypto: Rename QCryptoAFAlg to QCryptoAFAlgo).Fixes 90c3dc60735a (crypto/hash-afalg: Implement new hash API)Signed-off-by Markus Armbruster <[email protected]>My bad :/ Obviously, I didn't catch this at compile time, nor did CI.
Not blaming you; this is something CI should catch. How could we close the CI gap?
Quoted 1 line
Reviewed-by Cédric Le Goater <[email protected]>
Thanks!
Daniel P. Berrangé
Reviewed-byQuoted 8 lines · Cédric Le Goater
Quoted 5 lines · Markus Armbruster
Fux build broken by semantic conflict with commit
8f525028bc6(qapi/crypto: Rename QCryptoAFAlg to QCryptoAFAlgo).Fixes 90c3dc60735a (crypto/hash-afalg: Implement new hash API)Signed-off-by Markus Armbruster <[email protected]>My bad :/ Obviously, I didn't catch this at compile time, nor did CI.
Yeah, this is a clear gap in our CI that I will post a patch for.
Quoted 1 line
Reviewed-by Cédric Le Goater <[email protected]>
Quoted 47 lines
Thanks,
C.
Quoted 41 lines
--- crypto/hash-afalg.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)crypto/hash-afalg.c +4
-4@@ -142,7 +142,7 @@ QCryptoHash *qcrypto_afalg_hash_new(QCryptoHashAlgo alg, Error **errp)static void qcrypto_afalg_hash_free (QCryptoHash *hash) { -QCryptoAFAlg *ctx = hash->opaque; +QCryptoAFAlgo *ctx = hash->opaque;if (ctx) {qcrypto_afalg_comm_free (ctx);@@ -159,7 +159,7 @@ void qcrypto_afalg_hash_free(QCryptoHash *hash)* be provided to calculate the final hash. */ static -int qcrypto_afalg_send_to_kernel(QCryptoAFAlg *afalg, +int qcrypto_afalg_send_to_kernel(QCryptoAFAlgo *afalg, const struct iovec *iov, size_t niov, bool more_data,@@ -183,7 +183,7 @@ int qcrypto_afalg_send_to_kernel(QCryptoAFAlg *afalg, } static -int qcrypto_afalg_recv_from_kernel(QCryptoAFAlg *afalg, +int qcrypto_afalg_recv_from_kernel(QCryptoAFAlgo *afalg, QCryptoHashAlgo alg, uint8_t **result, size_t *result_len,@@ -222,7 +222,7 @@ int qcrypto_afalg_hash_update(QCryptoHash *hash,size_t niov, Error **errp) { - return qcrypto_afalg_send_to_kernel((QCryptoAFAlg *) hash->opaque, + return qcrypto_afalg_send_to_kernel((QCryptoAFAlgo *) hash->opaque, iov, niov, true, errp); }
Quoted 10 lines
crypto/hash-afalg.c int qcrypto_afalg_hash_finalize(QCryptoHash *hash, · line 237
Quoted 8 lines
crypto/hash-afalg.c +1
-1@@ -232,7 +232,7 @@ int qcrypto_afalg_hash_finalize(QCryptoHash *hash,size_t *result_len, Error **errp) { - return qcrypto_afalg_recv_from_kernel((QCryptoAFAlg *) hash->opaque, + return qcrypto_afalg_recv_from_kernel((QCryptoAFAlgo *) hash->opaque, hash->alg, result, result_len, errp); }
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|