Module Name: src Committed By: hauke Date: Fri Aug 2 14:55:57 UTC 2019
Modified Files: src/sys/external/bsd/drm/dist/shared-core: savage_state.c Log Message: Deal with gcc's "warning: this statement may fall through [-Wimplicit-fallthrough=]" by adding the missing KNF FALLTHROUGH comments. christos@ approved. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 \ src/sys/external/bsd/drm/dist/shared-core/savage_state.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm/dist/shared-core/savage_state.c diff -u src/sys/external/bsd/drm/dist/shared-core/savage_state.c:1.4 src/sys/external/bsd/drm/dist/shared-core/savage_state.c:1.5 --- src/sys/external/bsd/drm/dist/shared-core/savage_state.c:1.4 Tue Jun 23 04:42:01 2009 +++ src/sys/external/bsd/drm/dist/shared-core/savage_state.c Fri Aug 2 14:55:57 2019 @@ -297,6 +297,7 @@ static int savage_dispatch_dma_prim(drm_ case SAVAGE_PRIM_TRILIST_201: reorder = 1; prim = SAVAGE_PRIM_TRILIST; + /* FALLTHROUGH */ case SAVAGE_PRIM_TRILIST: if (n % 3 != 0) { DRM_ERROR("wrong number of vertices %u in TRILIST\n", @@ -434,6 +435,7 @@ static int savage_dispatch_vb_prim(drm_s case SAVAGE_PRIM_TRILIST_201: reorder = 1; prim = SAVAGE_PRIM_TRILIST; + /* FALLTHROUGH */ case SAVAGE_PRIM_TRILIST: if (n % 3 != 0) { DRM_ERROR("wrong number of vertices %u in TRILIST\n", @@ -555,6 +557,7 @@ static int savage_dispatch_dma_idx(drm_s case SAVAGE_PRIM_TRILIST_201: reorder = 1; prim = SAVAGE_PRIM_TRILIST; + /* FALLTHROUGH */ case SAVAGE_PRIM_TRILIST: if (n % 3 != 0) { DRM_ERROR("wrong number of indices %u in TRILIST\n", n); @@ -693,6 +696,7 @@ static int savage_dispatch_vb_idx(drm_sa case SAVAGE_PRIM_TRILIST_201: reorder = 1; prim = SAVAGE_PRIM_TRILIST; + /* FALLTHROUGH */ case SAVAGE_PRIM_TRILIST: if (n % 3 != 0) { DRM_ERROR("wrong number of indices %u in TRILIST\n", n); @@ -1060,7 +1064,7 @@ int savage_bci_cmdbuf(struct drm_device DMA_FLUSH(); return -EINVAL; } - /* fall through */ + /* FALLTHROUGH */ case SAVAGE_CMD_DMA_PRIM: case SAVAGE_CMD_VB_PRIM: if (!first_draw_cmd)