aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/1254-drm-amd-display-dc-bios_parser2-Mark-expected-switch.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1254-drm-amd-display-dc-bios_parser2-Mark-expected-switch.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/1254-drm-amd-display-dc-bios_parser2-Mark-expected-switch.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1254-drm-amd-display-dc-bios_parser2-Mark-expected-switch.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1254-drm-amd-display-dc-bios_parser2-Mark-expected-switch.patch
new file mode 100644
index 00000000..04cc1d1b
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1254-drm-amd-display-dc-bios_parser2-Mark-expected-switch.patch
@@ -0,0 +1,43 @@
+From e15b88efd49f78806911e4cd5eae86e979e8d009 Mon Sep 17 00:00:00 2001
+From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
+Date: Fri, 15 Feb 2019 10:50:23 -0600
+Subject: [PATCH 1254/2940] 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: Gustavo A. R. Silva <gustavo@embeddedor.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
+index a1c56f29cfeb..fd5266a58297 100644
+--- a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
++++ b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
+@@ -265,6 +265,7 @@ static struct atom_display_object_path_v2 *get_bios_object(
+ && id.enum_id == obj_id.enum_id)
+ return &bp->object_info_tbl.v1_4->display_path[i];
+ }
++ /* fall through */
+ case OBJECT_TYPE_CONNECTOR:
+ case OBJECT_TYPE_GENERIC:
+ /* Both Generic and Connector Object ID
+@@ -277,6 +278,7 @@ static struct atom_display_object_path_v2 *get_bios_object(
+ && id.enum_id == obj_id.enum_id)
+ return &bp->object_info_tbl.v1_4->display_path[i];
+ }
++ /* fall through */
+ default:
+ return NULL;
+ }
+--
+2.17.1
+