Thread (6 messages) flat view 6 messages, 3 authors, 2018-09-20

Re: [1/2] powerpc/prom: Remove VLA in prom_check_platform_support()

From: Michael Ellerman <hidden>
Date: 2018-09-20 04:21:00

On Wed, 2018-09-05 at 02:09:50 UTC, Suraj Jitindar Singh wrote:
In prom_check_platform_support() we retrieve and parse the
"ibm,arch-vec-5-platform-support" property of the chosen node.
Currently we use a variable length array however to avoid this use an
array of constant length 8.

This property is used to indicate the supported options of vector 5
bytes 23-26 of the ibm,architecture.vec node. Each of these options
is a pair of bytes, thus for 4 options we have a max length of 8 bytes.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Series applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/ab91239942a900e209f72488627306

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help