summaryrefslogtreecommitdiffstats
path: root/lib/lockref.c
diff options
context:
space:
mode:
authorNicolas Iooss <nicolas.iooss_linux@m4x.org>2015-08-01 21:55:38 +0800
committerAlex Deucher <alexander.deucher@amd.com>2015-08-05 14:26:48 -0400
commit0fd64291031d3587753b8adc53123b277855c777 (patch)
treec7cc3b23b3903dab9c0852316acc98aceec7c403 /lib/lockref.c
parenta0e2f50bdb588d91a553f2f6bd56be7bedc94b1a (diff)
downloadlinux-stable-0fd64291031d3587753b8adc53123b277855c777.tar.gz
linux-stable-0fd64291031d3587753b8adc53123b277855c777.tar.bz2
linux-stable-0fd64291031d3587753b8adc53123b277855c777.zip
drm/amdgpu: increment queue when iterating on this variable.
gfx_v7_0_print_status contains a for loop on variable queue which does not update this variable between each iteration. This is bug is reported by clang while building allmodconfig LLVMLinux on x86_64: drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c:5126:19: error: variable 'queue' used in loop condition not modified in loop body [-Werror,-Wloop-analysis] for (queue = 0; queue < 8; i++) { ^~~~~ Fix this by incrementing variable queue instead of i in this loop. Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'lib/lockref.c')
0 files changed, 0 insertions, 0 deletions