From 27ef2ce0d4d8eeb3bca32ddeae503f0a334832aa Mon Sep 17 00:00:00 2001 From: "Luke A. Guest" Date: Mon, 4 Jul 2016 19:41:08 +0100 Subject: [PATCH 7/8] Remove connector parameter from __drm_atomic_helper_connector_destroy_state for 4.7.x kernels. --- amd/dal/amdgpu_dm/amdgpu_dm_types.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/amd/dal/amdgpu_dm/amdgpu_dm_types.c b/amd/dal/amdgpu_dm/amdgpu_dm_types.c index 2e2d2e6..cd34607 100644 --- a/amd/dal/amdgpu_dm/amdgpu_dm_types.c +++ b/amd/dal/amdgpu_dm/amdgpu_dm_types.c @@ -1205,7 +1205,11 @@ void amdgpu_dm_connector_atomic_destroy_state( struct dm_connector_state *dm_state = to_dm_connector_state(state); +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0) + __drm_atomic_helper_connector_destroy_state(state); +#else __drm_atomic_helper_connector_destroy_state(connector, state); +#endif kfree(dm_state); } -- 2.9.3