Re: [PATCH] crypto: acomp - search acomp with scomp backend in crypto_has_acomp

2020-04-29 Thread Herbert Xu
On Thu, Apr 30, 2020 at 12:47:32PM +1200, Barry Song wrote: > > diff --git a/include/crypto/acompress.h b/include/crypto/acompress.h > index d873f999b334..a7170848e6c2 100644 > --- a/include/crypto/acompress.h > +++ b/include/crypto/acompress.h > @@ -156,7 +156,7 @@ static inline void crypto_free_a

[PATCH] crypto: acomp - search acomp with scomp backend in crypto_has_acomp

2020-04-29 Thread Barry Song
users may call crypto_has_acomp to confirm the existence of acomp before using crypto_acomp APIs. Right now, many of acomp have scomp backend, for example, lz4, lzo, deflate etc. crypto_has_acomp will return false for them even though they support acomp APIs. One possible way to make has_acomp tru