diff options
| author | Paul Bolle <[email protected]> | 2013-07-20 18:05:05 +0000 |
|---|---|---|
| committer | Dan Williams <[email protected]> | 2013-08-23 07:21:44 +0000 |
| commit | e6a5fa63407bfc5b7b13e850a0a67e4db8c00ce7 (patch) | |
| tree | eecbc5158592733598d06048cc518196b1fa4a75 /fs/btrfs/dev-replace.c | |
| parent | dmaengine: make dma_channel_rebalance() NUMA aware (diff) | |
| download | kernel-e6a5fa63407bfc5b7b13e850a0a67e4db8c00ce7.tar.gz kernel-e6a5fa63407bfc5b7b13e850a0a67e4db8c00ce7.zip | |
ioatdma: silence GCC warnings
Building dma_v3.o triggers a GCC warning:
drivers/dma/ioat/dma_v3.c: In function ‘__ioat3_prep_pq16_lock’:
drivers/dma/ioat/dma_v3.c:264:11: warning: array subscript is below array bounds [-Warray-bounds]
drivers/dma/ioat/dma_v3.c:264:11: warning: array subscript is below array bounds [-Warray-bounds]
This warning is caused by pq16_set_src(). It uses "int idx" as an index
to an eight element array. Changing "idx" to "unsigned" silences this
warning. Apparently GCC can then determine that "idx" will never be
negative.
Signed-off-by: Paul Bolle <[email protected]>
Acked-by: Dave Jiang <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
