Skip to content

Commit f49efb1

Browse files
drm/nouveau: Fix fall-through warnings for Clang
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: KSPP#115 Reviewed-by: Karol Herbst <[email protected]> Signed-off-by: Gustavo A. R. Silva <[email protected]>
1 parent 53004ee commit f49efb1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/gpu/drm/nouveau/nouveau_bo.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ nouveau_bo_pin(struct nouveau_bo *nvbo, uint32_t domain, bool contig)
440440
break;
441441
case TTM_PL_TT:
442442
error |= !(domain & NOUVEAU_GEM_DOMAIN_GART);
443+
break;
443444
default:
444445
break;
445446
}

drivers/gpu/drm/nouveau/nouveau_connector.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ nouveau_conn_atomic_set_property(struct drm_connector *connector,
157157
default:
158158
break;
159159
}
160+
break;
160161
case DRM_MODE_SCALE_FULLSCREEN:
161162
case DRM_MODE_SCALE_CENTER:
162163
case DRM_MODE_SCALE_ASPECT:

0 commit comments

Comments
 (0)