diff options
author | Shaokun Zhang <[email protected]> | 2021-04-08 20:41:58 +0800 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2021-04-09 16:55:13 -0400 |
commit | a3fe0e334f319072746c472185be94a4d5f1a772 (patch) | |
tree | fda1efaea3316762ae394857a9ae4b8df6a75bb5 | |
parent | ccfc4392f257f9844bf36a1f254d617bef7193aa (diff) |
drm/amd/display: Fix the Wunused-function warning
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:941:13: warning: ‘dm_dmub_trace_high_irq’ defined but not used [-Wunused-function]
941 | static void dm_dmub_trace_high_irq(void *interrupt_params)
| ^~~~~~~~~~~~~~~~~~~~~~
Fixes: a08f16cfe8dc ("drm/amd/display: Log DMCUB trace buffer events")
Cc: Leo (Hanghong) Ma <[email protected]>
Cc: Daniel Wheeler <[email protected]>
Cc: Harry Wentland <[email protected]>
Cc: Solomon Chiu <[email protected]>
Cc: Alex Deucher <[email protected]>
Reviewed-by: Harry Wentland <[email protected]>
Signed-off-by: Shaokun Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r-- | drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index ec3c6d62a2b6..a0c8c41e4e57 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -937,6 +937,7 @@ static int dm_dmub_hw_init(struct amdgpu_device *adev) return 0; } +#if defined(CONFIG_DRM_AMD_DC_DCN) #define DMUB_TRACE_MAX_READ 64 static void dm_dmub_trace_high_irq(void *interrupt_params) { @@ -963,7 +964,6 @@ static void dm_dmub_trace_high_irq(void *interrupt_params) ASSERT(count <= DMUB_TRACE_MAX_READ); } -#if defined(CONFIG_DRM_AMD_DC_DCN) static void mmhub_read_system_context(struct amdgpu_device *adev, struct dc_phy_addr_space_config *pa_config) { uint64_t pt_base; |