summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Engestrom <eric@engestrom.ch>2017-07-30 21:34:16 +0100
committerEric Engestrom <eric.engestrom@imgtec.com>2017-08-01 18:29:28 +0100
commit053ad3848786bf40a8131a2069d0fae259222c4f (patch)
treedc3e7c020df0a3404f19a992dc764927c0eba6b0
parent3876bc246a07070a6043159cd7623d4def9bbd4c (diff)
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>
-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,
if (surf->npix_y > 1) {
return -EINVAL;
}
+ /* fallthrough */
case RADEON_SURF_TYPE_2D:
if (surf->npix_z > 1) {
return -EINVAL;