Commit 7ac65f42 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Alex Deucher

drm/amd/display/dc/bios_parser2: Mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch
cases where we are expecting to fall through.

Warning level 3 was used: -Wimplicit-fallthrough=3

This patch is part of the ongoing efforts to enable
-Wimplicit-fallthrough.
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 234441dd
...@@ -265,6 +265,7 @@ static struct atom_display_object_path_v2 *get_bios_object( ...@@ -265,6 +265,7 @@ static struct atom_display_object_path_v2 *get_bios_object(
&& id.enum_id == obj_id.enum_id) && id.enum_id == obj_id.enum_id)
return &bp->object_info_tbl.v1_4->display_path[i]; return &bp->object_info_tbl.v1_4->display_path[i];
} }
/* fall through */
case OBJECT_TYPE_CONNECTOR: case OBJECT_TYPE_CONNECTOR:
case OBJECT_TYPE_GENERIC: case OBJECT_TYPE_GENERIC:
/* Both Generic and Connector Object ID /* Both Generic and Connector Object ID
...@@ -277,6 +278,7 @@ static struct atom_display_object_path_v2 *get_bios_object( ...@@ -277,6 +278,7 @@ static struct atom_display_object_path_v2 *get_bios_object(
&& id.enum_id == obj_id.enum_id) && id.enum_id == obj_id.enum_id)
return &bp->object_info_tbl.v1_4->display_path[i]; return &bp->object_info_tbl.v1_4->display_path[i];
} }
/* fall through */
default: default:
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment