dmaengine: dmatest: Remove use of VLAs
authorLaura Abbott <labbott@redhat.com>
Wed, 11 Apr 2018 01:02:16 +0000 (18:02 -0700)
committerVinod Koul <vinod.koul@intel.com>
Mon, 16 Apr 2018 15:35:54 +0000 (21:05 +0530)
commit72ef08bf651a9fab3b315b8e6d57d19926c77e4d
tree75e60525b2ec379b3a867967dc373a2047f3bf43
parent60cc43fc888428bb2f18f08997432d426a243338
dmaengine: dmatest: Remove use of VLAs

There's an ongoing effort to remove VLAs from the kernel
(https://lkml.org/lkml/2018/3/7/621) to eventually turn on -Wvla.
The test already pre-allocates some buffers with kmalloc so turn
the two VLAs in to pre-allocated kmalloc buffers.

Signed-off-by: Laura Abbott <labbott@redhat.com>
Reviewed-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dmatest.c