drm: Branch 'master'

[email protected] (Eric Engestr??m) Tue, 1 Aug 2017 17:29:50 +0000 (UTC)
Newsgroups gmane.comp.video.dri.patches
Message-ID <[email protected]>
 radeon/radeon_surface.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 053ad3848786bf40a8131a2069d0fae259222c4f
Author: Eric Engestrom <[email protected]>
Date:   Sun Jul 30 21:34:16 2017 +0100

    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 <[email protected]>
    Reviewed-by: Michel Dänzer <[email protected]>

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;

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

--
_______________________________________________
Dri-patches mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-patches