RE: [PATCH] drm/amdgpu: Fix missing error code in amdgpu_od_set_init

2024-05-28 Thread Wang, Yang(Kevin)
al Message- From: SHANMUGAM, SRINIVASAN Sent: Tuesday, May 28, 2024 2:53 PM To: Koenig, Christian ; Deucher, Alexander Cc: amd-gfx@lists.freedesktop.org; SHANMUGAM, SRINIVASAN ; Ma, Jun ; Wang, Yang(Kevin) ; Lazar, Lijo Subject: [PATCH] drm/amdgpu: Fix missing error code in amdgpu_od_set_init T

[PATCH] drm/amdgpu: Fix missing error code in amdgpu_od_set_init

2024-05-27 Thread Srinivasan Shanmugam
This commit ensures that an error code -EINVAL is set in the amdgpu_od_set_init function when the od_kobj_list has only one entry, indicating that the list is not in the expected state. Fixes the below: drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c:4355 amdgpu_od_set_init() warn: missing error cod