]> Git Repo - linux.git/commitdiff
drm/nouveau: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <[email protected]>
Fri, 20 Nov 2020 18:35:33 +0000 (12:35 -0600)
committerGustavo A. R. Silva <[email protected]>
Fri, 4 Jun 2021 04:21:51 +0000 (23:21 -0500)
In preparation to enable -Wimplicit-fallthrough for Clang, fix a couple
of warnings by explicitly adding a couple of break statements instead
of letting the code fall through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Reviewed-by: Karol Herbst <[email protected]>
Signed-off-by: Gustavo A. R. Silva <[email protected]>
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_connector.c

index 3e09df0472ce40183caf0babe242ac61ee3fe519..c3ee3007bc45ac11a78a28be02c7206173bc8738 100644 (file)
@@ -440,6 +440,7 @@ nouveau_bo_pin(struct nouveau_bo *nvbo, uint32_t domain, bool contig)
                        break;
                case TTM_PL_TT:
                        error |= !(domain & NOUVEAU_GEM_DOMAIN_GART);
+                       break;
                default:
                        break;
                }
index 61e6d7412505a39464c27c65cdbfabcfc5757457..eb844cdcaec2450db73ba649d155576f2dfd9954 100644 (file)
@@ -157,6 +157,7 @@ nouveau_conn_atomic_set_property(struct drm_connector *connector,
                        default:
                                break;
                        }
+                       break;
                case DRM_MODE_SCALE_FULLSCREEN:
                case DRM_MODE_SCALE_CENTER:
                case DRM_MODE_SCALE_ASPECT:
This page took 0.05799 seconds and 4 git commands to generate.