diff options
author | 2020-10-08 09:34:50 -0500 | |
---|---|---|
committer | 2020-10-09 14:44:39 -0400 | |
commit | 201a4eb9dc960b6c081936e0990e289959707996 (patch) | |
tree | f16b731687fac7a8bbc7bc4b006d5e94e997fe18 /drivers/gpu/drm/amd/pm/amdgpu_pm.c | |
parent | drm/amdgpu: Use struct_size() helper in kmalloc() (diff) | |
download | wireguard-linux-201a4eb9dc960b6c081936e0990e289959707996.tar.xz wireguard-linux-201a4eb9dc960b6c081936e0990e289959707996.zip |
amd/amdgpu_ctx: Use struct_size() helper and kmalloc() (v2)
Make use of the new struct_size() helper instead of the offsetof() idiom.
Also, use kmalloc() instead of kcalloc().
v2: squash in kzalloc fix
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions