diff options
author | Alexey Skidanov <Alexey.Skidanov@amd.com> | 2014-11-19 18:07:00 +0300 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@amd.com> | 2014-11-19 18:07:00 +0300 |
commit | 52a5fdce136bcaabc719be6e8f141d68426b3c74 (patch) | |
tree | bc5bce320569f6b2ef400944638a50eedf92255f /drivers/gpu/drm/amd/amdkfd/kfd_priv.h | |
parent | 9a5634a72934a566b3e5fdb0e8f345846162f7d3 (diff) | |
download | linux-52a5fdce136bcaabc719be6e8f141d68426b3c74.tar.xz |
amdkfd: Instead of using get function, use container_of
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alexey Skidanov <Alexey.Skidanov@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_priv.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h index d0bcafcf048f..f9fb81e3bb09 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h +++ b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h @@ -414,6 +414,8 @@ struct kfd_process_device { bool bound; }; +#define qpd_to_pdd(x) container_of(x, struct kfd_process_device, qpd) + /* Process data */ struct kfd_process { /* |