drm/amd/display: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:28:12 +0000 (12:28 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Nov 2020 17:05:46 +0000 (12:05 -0500)
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding multiple break statements instead of just
letting the code fall through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
drivers/gpu/drm/amd/display/dc/core/dc_link.c

index ad394ae..23a373c 100644 (file)
@@ -1198,6 +1198,7 @@ static enum bp_result bios_parser_get_embedded_panel_info(
                default:
                        break;
                }
+               break;
        default:
                break;
        }
index 43922fa..1782ff5 100644 (file)
@@ -903,6 +903,7 @@ static enum bp_result bios_parser_get_soc_bb_info(
                        break;
                case 4:
                        result = get_soc_bb_info_v4_4(bp, soc_bb_info);
+                       break;
                default:
                        break;
                }
@@ -1019,6 +1020,7 @@ static enum bp_result bios_parser_get_embedded_panel_info(
                default:
                        break;
                }
+               break;
        default:
                break;
        }
index 5790aff..02ba6b0 100644 (file)
@@ -1060,6 +1060,7 @@ static bool dc_link_detect_helper(struct dc_link *link,
 
                                return false;
                        }
+                       break;
                default:
                        break;
                }