From: Gustavo A. R. Silva Date: Fri, 20 Nov 2020 18:35:38 +0000 (-0600) Subject: drm/nouveau/therm: Fix fall-through warnings for Clang X-Git-Tag: v5.14-rc1~155^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e0e6f9b2a329c2672391fab435240c221d04641c;p=thirdparty%2Flinux.git drm/nouveau/therm: Fix fall-through warnings for Clang In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/therm/gf119.c b/drivers/gpu/drm/nouveau/nvkm/subdev/therm/gf119.c index 2b031d4eaeb68..684aff7437eef 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/therm/gf119.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/therm/gf119.c @@ -41,6 +41,7 @@ pwm_info(struct nvkm_therm *therm, int line) default: break; } + break; default: break; }