aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/processor.h
diff options
context:
space:
mode:
authorSuraj Jitindar Singh <[email protected]>2018-09-05 12:09:50 +1000
committerMichael Ellerman <[email protected]>2018-09-19 22:08:12 +1000
commitab91239942a900e209f724886273060d9288f6fb (patch)
treeafa0bb1052bd21643d7f888aaf630e1c03cf1a74 /arch/powerpc/include/asm/processor.h
parente00d93ac9a189673028ac125a74b9bc8ae73eebc (diff)
powerpc/prom: Remove VLA in prom_check_platform_support()
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 <[email protected]> Reviewed-by: Joel Stanley <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'arch/powerpc/include/asm/processor.h')
0 files changed, 0 insertions, 0 deletions