mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-03 18:40:20 +01:00
radeon: add fallthrough annotation
GCC 7 started warning when a switch case has neither a `break` nor a "fallthrough" comment. Let's be explicit that we meant to fall through here. Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
parent
3876bc246a
commit
053ad38487
1 changed files with 1 additions and 0 deletions
|
|
@ -2503,6 +2503,7 @@ static int radeon_surface_sanity(struct radeon_surface_manager *surf_man,
|
|||
if (surf->npix_y > 1) {
|
||||
return -EINVAL;
|
||||
}
|
||||
/* fallthrough */
|
||||
case RADEON_SURF_TYPE_2D:
|
||||
if (surf->npix_z > 1) {
|
||||
return -EINVAL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue