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)
commit1b80ac648483189e45f60d4ddbb54b78ca942849
tree3fb7e5302ca80ea10edc6c575a34d46de8f4dce9
parent00c376fdd7ed6cc083da3a3c51a63a75f270d647
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