drivers/crypto/aspeed/aspeed-hace-hash.c:443 aspeed_ahash_fallback() warn: inconsistent indenting
Subsystems (3)
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master head: 82a0302e7167d0b7c6cde56613db3748f8dd806d commit: 508712228696eaddc4efc706e6a8dd679654f339 [11/61] crypto: aspeed/hash - Add fallback config: arm-randconfig-r073-20250623 (https://download.01.org/0day-ci/archive/20250623/[email protected]/config) compiler: arm-linux-gnueabi-gcc (GCC) 14.3.0
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
smatch warnings:drivers/crypto/aspeed/aspeed-hace-hash.c:443 aspeed_ahash_fallback() warn: inconsistent indenting
vim +443 drivers/crypto/aspeed/aspeed-hace-hash.c
422
423 static noinline int aspeed_ahash_fallback(struct ahash_request *req)
424 {
425 struct aspeed_sham_reqctx *rctx = ahash_request_ctx(req);
426 HASH_FBREQ_ON_STACK(fbreq, req);
427 u8 *state = rctx->buffer;
428 struct scatterlist sg[2];
429 struct scatterlist *ssg;
430 int ret;
431
432 ssg = scatterwalk_ffwd(sg, req->src, rctx->offset);
433 ahash_request_set_crypt(fbreq, ssg, req->result,
434 rctx->total - rctx->offset);
435
436 ret = aspeed_sham_export(req, state) ?:
437 crypto_ahash_import_core(fbreq, state);
438
439 if (rctx->flags & SHA_FLAGS_FINUP)
440 ret = ret ?: crypto_ahash_finup(fbreq);
441 else
442 ret = ret ?: crypto_ahash_update(fbreq);
> 443 crypto_ahash_export_core(fbreq, state) ?:
444 aspeed_sham_import(req, state);
445 HASH_REQUEST_ZERO(fbreq);
446 return ret;
447 }
448
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Herbert Xu
maintainerPATCH 1/1 crypto: aspeed - Fix hash fallback path typo
Quoted 7 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master head: 82a0302e7167d0b7c6cde56613db3748f8dd806d commit: 508712228696eaddc4efc706e6a8dd679654f339 [11/61] crypto: aspeed/hash - Add fallback config: arm-randconfig-r073-20250623 (https://download.01.org/0day-ci/archive/20250623/[email protected]/config) compiler: arm-linux-gnueabi-gcc (GCC) 14.3.0If you fix the issue in a separate patch/commit (i.e. not just a new version of
Thanks for the report!
---8<---
Fix typo in the fallback code path.
drivers/crypto/aspeed/aspeed-hace-hash.c +1 -1
@@ -449,7 +449,7 @@ static noinline int aspeed_ahash_fallback(struct ahash_request *req)if (rctx->flags &SHA_FLAGS_FINUP ) ret = ret ?:crypto_ahash_finup (fbreq);else - ret = ret ?:crypto_ahash_update (fbreq); + ret = ret ?:crypto_ahash_update (fbreq) ?:crypto_ahash_export_core (fbreq, state) ?:aspeed_sham_import (req, state);HASH_REQUEST_ZERO (fbreq);
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt