From: "Gustavo A. R. Silva" <garsilva@embeddedor.com>
To: Borislav Petkov <bp@alien8.de>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] EDAC, sb_edac: Remove VLA usage
Date: Tue, 13 Mar 2018 06:08:51 -0500 [thread overview]
Message-ID: <99aa9024-ea78-70a0-bb22-222f53b00029@embeddedor.com> (raw)
In-Reply-To: <20180313104811.GA23568@pd.tnic>
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
prev parent reply other threads:[~2018-03-13 11:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-10 3:02 Gustavo A. R. Silva
2018-03-10 14:04 ` Borislav Petkov
2018-03-12 22:52 ` Gustavo A. R. Silva
2018-03-13 10:48 ` Borislav Petkov
2018-03-13 11:08 ` Gustavo A. R. Silva [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=99aa9024-ea78-70a0-bb22-222f53b00029@embeddedor.com \
--to=garsilva@embeddedor.com \
--cc=bp@alien8.de \
--cc=linux-edac@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®