]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: LLVMLinux: Remove VLAIS
authorVinícius Tinti <viniciustinti@gmail.com>
Fri, 4 Apr 2014 21:21:24 +0000 (18:21 -0300)
committerBehan Webster <behanw@converseincode.com>
Tue, 14 Oct 2014 08:51:22 +0000 (10:51 +0200)
commit95d023c4f8f98acefca370c5b30c582e6f34318b
treec73eb37def38237f25aba8347443237f25941725
parent496e3bd90fb66f3c8cd0f16d5056f50b95d7337d
btrfs: LLVMLinux: Remove VLAIS

Replaced the use of a Variable Length Array In Struct (VLAIS) with a C99
compliant equivalent.  This patch instead 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: Vinícius Tinti <viniciustinti@gmail.com>
Reviewed-by: Jan-Simon Möller <dl9pf@gmx.de>
Reviewed-by: Mark Charlebois <charlebm@gmail.com>
Signed-off-by: Behan Webster <behanw@converseincode.com>
Acked-by: Chris Mason <clm@fb.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
fs/btrfs/hash.c