[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 01/17] crypto: Move QCryptoCipher typedef to qemu/typedefs.h
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH 01/17] crypto: Move QCryptoCipher typedef to qemu/typedefs.h |
Date: |
Mon, 17 Aug 2020 17:48:01 +0100 |
User-agent: |
Mutt/1.14.5 (2020-06-23) |
On Wed, Aug 12, 2020 at 08:25:21PM -0700, Richard Henderson wrote:
> This allows header files to declare pointers without pulling
> in the entire crypto subsystem.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> include/crypto/cipher.h | 2 --
> include/qemu/typedefs.h | 1 +
> 2 files changed, 1 insertion(+), 2 deletions(-)
I'm not in favour of this change or the next. Using #include "cipher.h"
is not a burden on the users of the crypto code. Moving typedefs away
from the associated struct is a step backwards IMHO.
Regards,
Daniel
--
|: 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 :|
[PATCH 02/17] crypto: Move QCryptoCipherDriver typedef to qemu/typedefs.h, Richard Henderson, 2020/08/12
[PATCH 03/17] crypto: Assume blocksize is a power of 2, Richard Henderson, 2020/08/12
[PATCH 04/17] crypto: Rename cipher include files to .inc.c, Richard Henderson, 2020/08/12