]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9b4f9e79488e90d41d273c2cd4fd869a3b91d33c
treef56000217a5de79cd49e79d60e8a8fb3f7a96a29
parent95d023c4f8f98acefca370c5b30c582e6f34318b
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