OSDN Git Service

drm/amd/amdgpu/amdgpu_kms: Remove 'struct drm_amdgpu_info_device dev_info' from the...
authorLee Jones <lee.jones@linaro.org>
Fri, 6 Nov 2020 21:49:46 +0000 (21:49 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Nov 2020 19:27:14 +0000 (14:27 -0500)
commita5a52a43eac06869191214a0f2384d95dc395560
tree60d58c3066bb87c0bd5db714873654c0f71f8b68
parent20b15c0ad7c5c9daf1d220ac35bd758d53154e46
drm/amd/amdgpu/amdgpu_kms: Remove 'struct drm_amdgpu_info_device dev_info' from the stack

Place it on the heap instead.

Fixes the following W=1 kernel build warning(s):

 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c: In function ‘amdgpu_info_ioctl’:
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c:979:1: warning: the frame size of 1128 bytes is larger than 1024 bytes [-Wframe-larger-than=]

Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: amd-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c