crypto: api - Add crypto_stack_request_init and initialise flags fully
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 25 Apr 2025 03:05:29 +0000 (11:05 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 28 Apr 2025 11:45:26 +0000 (19:45 +0800)
commitb75fa20c127eb736b0ac9b30be051f526a2316a9
treead56c6678c110145fac067d1e6628d51d58ce659
parente3b49657228c114099b4591821465dc6f9884c61
crypto: api - Add crypto_stack_request_init and initialise flags fully

Add a helper to initialise crypto stack requests and use it for
ahash and acomp.  Make sure that the flags field is initialised
fully in the helper to silence false-positive warnings from the
compiler.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202504250751.mdy28Ibr-lkp@intel.com/
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/acompress.h
include/crypto/hash.h
include/crypto/internal/acompress.h
include/crypto/internal/hash.h
include/linux/crypto.h