mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
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: https://github.com/KSPP/linux/issues/115 Reviewed-by: Karol Herbst <kherbst@redhat.com> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
This commit is contained in:
parent
53004ee78d
commit
f49efb108a
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user