Skip to contentSkip to conversation

RAID/s390: Remove VLA usage

PATCH Martin Schwidefsky 1 participant 1 message Jul 4, 2018 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20180703195221.GA11066@beast

#1 lore raw
Quoted 10 lines · On Tue, 3 Jul 2018 12:52:21 -0700 Kees Cook <[email protected]> wrote:

In the quest to remove all stack VLA usage from the kernel[1], this moves the "$#" replacement from being an argument to being inside the function, which avoids generating VLAs.

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

---
 lib/raid6/s390vx.uc | 34 ++++++++++++++++++----------------
 1 file changed, 18 insertions(+), 16 deletions(-)

Added to s390:features for the next merge window. Thanks.

Signature · 4 lines
blue skies,
   Martin.

"Reality continues to ruin my life." - Calvin.