Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 09 Mar 2018 10:11:47 -0800
From: Eric Anholt <>
To: "Tobin C. Harding" <>, Greg Kroah-Hartman <>, Stefan Wahren <>
Cc: "Tobin C. Harding" <>,,,, Tycho Andersen <>, Kees Cook <>
Subject: Re: [PATCH] staging: vchiq_arm: Clear VLA warning

"Tobin C. Harding" <> writes:

> The kernel would like to have all stack VLA usage removed[1].  The
> array here is fixed (declared with a const variable) but it appears
> like VLA to the compiler.  We can use a pre-processor define to quiet
> the compiler.
> [1]:
> Signed-off-by: Tobin C. Harding <>
> ---
> The name of this constant may need changing, there is already a
> pre-processor constant VCHIQ_MAX_SERVICES

Maybe just use ARRAY_SIZE(local_max_services) and not have the #define?

Download attachment "signature.asc" of type "application/pgp-signature" (833 bytes)

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.