[herbert-cryptodev-2.6:master 11/61] drivers/crypto/aspeed/aspeed-hace-hash.c:443 aspeed_ahash_fallback() warn: inconsistent indenting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/202506231830.us4hiwlZ-lkp@xxxxxxxxx/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 <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202506231830.us4hiwlZ-lkp@xxxxxxxxx/

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	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux