]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: LLVMLinux: Remove VLAIS from crypto/.../qat_algs.c
authorBehan Webster <behanw@converseincode.com>
Fri, 4 Apr 2014 21:18:00 +0000 (18:18 -0300)
committerBehan Webster <behanw@converseincode.com>
Tue, 14 Oct 2014 08:51:23 +0000 (10:51 +0200)
commit1c7b961b9e9f2afad70318c2d7127d31f014a5ac
tree91676171d241de3ff3295c762899877da136272d
parent85b1227a103ab8938548af13a604f447a5a1e9f3
crypto: LLVMLinux: Remove VLAIS from crypto/.../qat_algs.c

Replaced the use of a Variable Length Array In Struct (VLAIS) with a C99
compliant equivalent. This patch allocates the appropriate amount of memory
using a char array using the SHASH_DESC_ON_STACK macro.

The new code can be compiled with both gcc and clang.

Signed-off-by: Behan Webster <behanw@converseincode.com>
Reviewed-by: Mark Charlebois <charlebm@gmail.com>
Reviewed-by: Jan-Simon Möller <dl9pf@gmx.de>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/qat_algs.c