diff options
author | Matthias Kaehlcke <mka@chromium.org> | 2017-03-13 22:30:29 +0100 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2017-03-14 05:41:27 +0100 |
commit | 23f963e91fd81f44f6b316b1c24db563354c6be8 (patch) | |
tree | 9986bc990f2d17884d5709a2e34f92f37f5d6385 /scripts/basic | |
parent | dmaengine: bcm2835: Fix cyclic DMA period splitting (diff) | |
download | linux-23f963e91fd81f44f6b316b1c24db563354c6be8.tar.xz linux-23f963e91fd81f44f6b316b1c24db563354c6be8.zip |
dmaengine: Fix array index out of bounds warning in __get_unmap_pool()
This fixes the following warning when building with clang and
CONFIG_DMA_ENGINE_RAID=n :
drivers/dma/dmaengine.c:1102:11: error: array index 2 is past the end of the array (which contains 1 element) [-Werror,-Warray-bounds]
return &unmap_pool[2];
^ ~
drivers/dma/dmaengine.c:1083:1: note: array 'unmap_pool' declared here
static struct dmaengine_unmap_pool unmap_pool[] = {
^
drivers/dma/dmaengine.c:1104:11: error: array index 3 is past the end of the array (which contains 1 element) [-Werror,-Warray-bounds]
return &unmap_pool[3];
^ ~
drivers/dma/dmaengine.c:1083:1: note: array 'unmap_pool' declared here
static struct dmaengine_unmap_pool unmap_pool[] = {
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions