Skip to content

Commit

Permalink
drm/amd/display: Fix fall-through warnings for Clang
Browse files Browse the repository at this point in the history
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: KSPP/linux#115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
GustavoARSilva authored and krispan-intel committed Dec 24, 2020
1 parent d00e73a commit 0cb8c73
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/amd/display/dc/bios/bios_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1198,6 +1198,7 @@ static enum bp_result bios_parser_get_embedded_panel_info(
default:
break;
}
break;
default:
break;
}
Expand Down
2 changes: 2 additions & 0 deletions drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -1019,6 +1020,7 @@ static enum bp_result bios_parser_get_embedded_panel_info(
default:
break;
}
break;
default:
break;
}
Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/drm/amd/display/dc/core/dc_link.c
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,7 @@ static bool dc_link_detect_helper(struct dc_link *link,

return false;
}
break;
default:
break;
}
Expand Down

0 comments on commit 0cb8c73

Please sign in to comment.