lkml.org 
[lkml]   [2018]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] EDAC, sb_edac: Remove VLA usage
From
Date


On 03/13/2018 05:48 AM, Borislav Petkov wrote:
> On Mon, Mar 12, 2018 at 05:52:13PM -0500, Gustavo A. R. Silva wrote:
>> Do you mean just adding a code comment?
>
> No, I mean
>
> #define MAX_INTERLEAVE (max_t(unsigned int, ARRAY_SIZE(knl_interleave_list), ...
>
> which computes the max of all three array sizes.
>
> Thx.
>

I got it.

Exactly this:

#define MAX_INTERLEAVE (max_t(unsigned int,
ARRAY_SIZE(knl_interleave_list),\
max_t(unsigned int,
ARRAY_SIZE(ibridge_interleave_list),\

ARRAY_SIZE(sbridge_interleave_list))))


I'll send v2 shortly.

Thanks!
--
Gustavo

\
 
 \ /
  Last update: 2018-03-13 12:09    [W:0.067 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site