drm/amdkfd: fix stack size in svm_range_validate_and_map
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 17 May 2023 19:04:35 +0000 (15:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 14:38:06 +0000 (10:38 -0400)
commitf2cd6b26922e68ffafd14a9128e20630296e430d
tree9dfafd78407501c814ae40069e4468dff9630c8d
parent01c3f464743b64e6e65cb9bad951458986819a42
drm/amdkfd: fix stack size in svm_range_validate_and_map

Allocate large local variable on heap to avoid exceeding the
stack size:
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_svm.c: In function ‘svm_range_validate_and_map’:
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_svm.c:1690:1: warning: the frame size of 2360 bytes is larger than 2048 bytes [-Wframe-larger-than=]

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c