aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1268-drm-amdkfd-Fix-kernel-compile-warning.patch
blob: c59df0f5ede416a861cd6898a6398e04c7432593 (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
30
From 9782be2c019a2878c27b37bef619f465eb5aa580 Mon Sep 17 00:00:00 2001
From: Kent Russell <kent.russell@amd.com>
Date: Thu, 27 Apr 2017 10:12:53 -0400
Subject: [PATCH 1268/4131] drm/amdkfd: Fix kernel compile warning

We know that props will be defined in the loop, but set it to NULL to
appease the compiler

Change-Id: Ie18c3b38be6e66a9af4b4642d6ebc126cee19ea0
Signed-off-by: Kent Russell <kent.russell@amd.com>
---
 drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
index a928f45..e5a5574 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
@@ -303,7 +303,7 @@ static int kfd_parse_subtype_cache(struct crat_subtype_cache *cache,
 static int kfd_parse_subtype_iolink(struct crat_subtype_iolink *iolink,
 					struct list_head *device_list)
 {
-	struct kfd_iolink_properties *props, *props2;
+	struct kfd_iolink_properties *props = NULL, *props2;
 	struct kfd_topology_device *dev, *cpu_dev;
 	uint32_t id_from;
 	uint32_t id_to;
-- 
2.7.4