crypto: LLVMLinux: Remove VLAIS from crypto/n2_core.c
authorBehan Webster <[email protected]>
Fri, 4 Apr 2014 21:18:00 +0000 (18:18 -0300)
committerBehan Webster <[email protected]>
Tue, 14 Oct 2014 08:51:23 +0000 (10:51 +0200)
commitce1f3e47d9d11ffde75d06170304dc9ff2afe0c6
tree4d86fc571aaea82055c38f86041bec462281c38d
parent7128470f6b21b922b42f790d429330562eb6eab1
crypto: LLVMLinux: Remove VLAIS from crypto/n2_core.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 <[email protected]>
Reviewed-by: Mark Charlebois <[email protected]>
Reviewed-by: Jan-Simon Möller <[email protected]>
Acked-by: Herbert Xu <[email protected]>
drivers/crypto/n2_core.c