[$] Variable-length arrays and the max() mess

Post Syndicated from corbet original https://lwn.net/Articles/749064/rss

Variable-length arrays (VLAs) have a non-constant size that is determined (and
which can vary) at run time; they are supported by the ISO C99
standard. Use of VLAs in the
kernel has long been discouraged but not prohibited, so there are naturally
numerous VLA instances to be found. A recent push to remove VLAs from the
kernel entirely has gained momentum, but it ran into an interesting snag on
the way.