OSDN Git Service

drm/amdkfd: Fix missing break in switch statement
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Sun, 21 Jul 2019 21:41:37 +0000 (16:41 -0500)
committerGustavo A. R. Silva <gustavo@embeddedor.com>
Fri, 26 Jul 2019 01:12:38 +0000 (20:12 -0500)
commit737298d18836fd14b8820de6504536c998986bcd
treeaa825214aa0ab4b2c43fc2ac6dfcba174305d59f
parent7b26b91d3b2320a64af63b6ec989ee3bed59f0d3
drm/amdkfd: Fix missing break in switch statement

Add missing break statement in order to prevent the code from falling
through to case CHIP_NAVI10.

This bug was found thanks to the ongoing efforts to enable
-Wimplicit-fallthrough.

Fixes: 14328aa58ce5 ("drm/amdkfd: Add navi10 support to amdkfd. (v3)")
Cc: stable@vger.kernel.org
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
drivers/gpu/drm/amd/amdkfd/kfd_crat.c