aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1956-drm-amdgpu-clear-build-warning.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1956-drm-amdgpu-clear-build-warning.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1956-drm-amdgpu-clear-build-warning.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1956-drm-amdgpu-clear-build-warning.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1956-drm-amdgpu-clear-build-warning.patch
new file mode 100644
index 00000000..fd6f9203
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1956-drm-amdgpu-clear-build-warning.patch
@@ -0,0 +1,38 @@
+From 3bf450a661b09871abeec7174adf3ddecf365fad Mon Sep 17 00:00:00 2001
+From: James Zhu <James.Zhu@amd.com>
+Date: Wed, 4 Oct 2017 07:29:36 -0400
+Subject: [PATCH 1956/4131] drm/amdgpu: clear build warning
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Clear build warning: suggest explicit braces to avoid ambiguous
+‘else’ [-Wparentheses]. Introduced by commits:
+bc0123e4f0d8d072a3144e7662846c5221245dc3
+
+Signed-off-by: James Zhu <James.Zhu@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
+index 62ebd71..931ba9e 100644
+--- a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
+@@ -529,11 +529,12 @@ static int uvd_v6_0_hw_init(void *handle)
+ }
+
+ done:
+- if (!r)
++ if (!r) {
+ if (uvd_v6_0_enc_support(adev))
+ DRM_INFO("UVD and UVD ENC initialized successfully.\n");
+ else
+ DRM_INFO("UVD initialized successfully.\n");
++ }
+
+ return r;
+ }
+--
+2.7.4
+