|
From: Chris M. <cl...@fb...> - 2014-09-17 14:17:37
|
On 09/15/2014 03:30 AM, be...@co... wrote:
> From: Vinícius Tinti <vin...@gm...>
>
> Replaced the use of a Variable Length Array In Struct (VLAIS) with a C99
> compliant equivalent. This is the original VLAIS struct.
>
> struct {
> struct shash_desc shash;
> char ctx[crypto_shash_descsize(tfm)];
> } desc;
>
> 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 <vin...@gm...>
> Reviewed-by: Jan-Simon Möller <dl...@gm...>
> Reviewed-by: Mark Charlebois <cha...@gm...>
> Signed-off-by: Behan Webster <be...@co...>
> Cc: "David S. Miller" <da...@da...>
> Cc: Herbert Xu <he...@go...>
Acked-by: Chris Mason <cl...@fb...>
On the btrfs bits. Thanks for the v3.
-chris
|