]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/msi: Remove VLA usage
authorKees Cook <keescook@chromium.org>
Fri, 29 Jun 2018 18:52:54 +0000 (11:52 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 Jul 2018 12:41:09 +0000 (22:41 +1000)
commit72203b86217f9a224ad8036ee8ceb60507d18af8
tree3fb7e5302ca80ea10edc6c575a34d46de8f4dce9
parentb403e943588c90fe7498d805280369ce694338c8
powerpc/msi: Remove VLA usage

In the quest to remove all stack VLA usage from the kernel[1], this
switches from an unchanging variable to a constant expression to
eliminate the VLA generation.

[1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/msi_bitmap.c