crypto: LLVMLinux: Remove VLAIS from crypto/ccp/ccp-crypto-sha.c
authorJan-Simon Möller <dl9pf@gmx.de>
Thu, 4 Sep 2014 18:39:24 +0000 (20:39 +0200)
committerBehan Webster <behanw@converseincode.com>
Tue, 14 Oct 2014 08:51:23 +0000 (10:51 +0200)
commit61ded52438d5fdc4dea87f823c455f8ac1e426df
treef56000217a5de79cd49e79d60e8a8fb3f7a96a29
parent0458a953d85088a9ba3e448745676377775879e0
crypto: LLVMLinux: Remove VLAIS from crypto/ccp/ccp-crypto-sha.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: Jan-Simon Möller <dl9pf@gmx.de>
Signed-off-by: Behan Webster <behanw@converseincode.com>
Reviewed-by: Mark Charlebois <charlebm@gmail.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-crypto-sha.c