]> git.hungrycats.org Git - linux/commit
btrfs: LLVMLinux: Remove VLAIS
authorVinícius Tinti <viniciustinti@gmail.com>
Fri, 4 Apr 2014 21:21:24 +0000 (18:21 -0300)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Fri, 23 Jan 2015 13:15:28 +0000 (08:15 -0500)
commit5811f6b4443d9fc060f8c9c48a0125c5d2f7cf27
tree6500d4f74d6678268f9416d34162d77ca51be89b
parent33f16fc02aceff0c160c6bdc78ea3bced5a99f64
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>
(cherry picked from commit 0458a953d85088a9ba3e448745676377775879e0)
fs/btrfs/hash.c