aboutsummaryrefslogtreecommitdiffstats
path: root/radeon
diff options
context:
space:
mode:
authorEric Engestrom2017-07-30 15:34:16 -0500
committerEric Engestrom2017-08-01 12:29:28 -0500
commit053ad3848786bf40a8131a2069d0fae259222c4f (patch)
treedc3e7c020df0a3404f19a992dc764927c0eba6b0 /radeon
parent3876bc246a07070a6043159cd7623d4def9bbd4c (diff)
downloadexternal-libdrm-053ad3848786bf40a8131a2069d0fae259222c4f.tar.gz
external-libdrm-053ad3848786bf40a8131a2069d0fae259222c4f.tar.xz
external-libdrm-053ad3848786bf40a8131a2069d0fae259222c4f.zip
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>
Diffstat (limited to 'radeon')
-rw-r--r--radeon/radeon_surface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c
index 965be24c..04df77d6 100644
--- a/radeon/radeon_surface.c
+++ b/radeon/radeon_surface.c
@@ -2503,6 +2503,7 @@ static int radeon_surface_sanity(struct radeon_surface_manager *surf_man,
2503 if (surf->npix_y > 1) { 2503 if (surf->npix_y > 1) {
2504 return -EINVAL; 2504 return -EINVAL;
2505 } 2505 }
2506 /* fallthrough */
2506 case RADEON_SURF_TYPE_2D: 2507 case RADEON_SURF_TYPE_2D:
2507 if (surf->npix_z > 1) { 2508 if (surf->npix_z > 1) {
2508 return -EINVAL; 2509 return -EINVAL;