aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/0434-drm-amdgpu-add-default-case-to-switch-statement.patch
blob: ce02d8cbe752f21f9719a8cddb59c2fc5e073c8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 7c66ad33d1d518f288ed6fa794dd1070df4ba8e0 Mon Sep 17 00:00:00 2001
From: Alex Deucher <alexander.deucher@amd.com>
Date: Thu, 27 Sep 2018 22:33:31 -0500
Subject: [PATCH 0434/2940] drm/amdgpu: add default case to switch statement

Fixes unhandled case warnings.  Trivial.

Fixes: "drm/amdgpu: added vega20 LBPW support"
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
index 0a81d9bb393d..fe338add872c 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
@@ -1190,6 +1190,8 @@ static int gfx_v9_0_rlc_init(struct amdgpu_device *adev)
 	case CHIP_VEGA20:
 		gfx_v9_4_init_lbpw(adev);
 		break;
+	default:
+		break;
 	}
 
 	return 0;
-- 
2.17.1