On 09/17/14 04:30, Herbert Xu wrote:
On Wed, Sep 17, 2014 at 02:15:40PM +0300, Dmitry Kasatkin wrote:
On 17/09/14 12:22, Herbert Xu wrote:
On Mon, Sep 15, 2014 at 12:30:23AM -0700, beh...@converseincode.com wrote:
From: Behan Webster
Add a macro which replaces the use of a Variable Length Ar
On Wed, Sep 17, 2014 at 02:15:40PM +0300, Dmitry Kasatkin wrote:
> On 17/09/14 12:22, Herbert Xu wrote:
> > On Mon, Sep 15, 2014 at 12:30:23AM -0700, beh...@converseincode.com wrote:
> >> From: Behan Webster
> >>
> >> Add a macro which replaces the use of a Variable Length Array In Struct
> >> (V
On 17/09/14 12:22, Herbert Xu wrote:
> On Mon, Sep 15, 2014 at 12:30:23AM -0700, beh...@converseincode.com wrote:
>> From: Behan Webster
>>
>> Add a macro which replaces the use of a Variable Length Array In Struct
>> (VLAIS)
>> with a C99 compliant equivalent. This macro instead allocates the ap
On Mon, Sep 15, 2014 at 12:30:23AM -0700, beh...@converseincode.com wrote:
> From: Behan Webster
>
> Add a macro which replaces the use of a Variable Length Array In Struct
> (VLAIS)
> with a C99 compliant equivalent. This macro instead allocates the appropriate
> amount of memory using an char
On 09/15/14 01:06, Michał Mirosław wrote:
2014-09-15 9:30 GMT+02:00 :
[...]
+#define SHASH_DESC_ON_STACK(shash, tfm) \
+ char __desc[sizeof(struct shash_desc) + \
+ crypto_shash_descsize(tfm)] CRYPTO_MINALIGN_ATTR; \
+
2014-09-15 9:30 GMT+02:00 :
[...]
> +#define SHASH_DESC_ON_STACK(shash, tfm) \
> + char __desc[sizeof(struct shash_desc) + \
> + crypto_shash_descsize(tfm)] CRYPTO_MINALIGN_ATTR; \
> + struct shash_desc *shash = (struct s
From: Behan Webster
Add a macro which replaces the use of a Variable Length Array In Struct (VLAIS)
with a C99 compliant equivalent. This macro instead allocates the appropriate
amount of memory using an char array.
The new code can be compiled with both gcc and clang.
struct shash_desc contain