Skip to content

Commit a3fe0e3

Browse files
zhangshkalexdeucher
authored andcommitted
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: a08f16c ("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]>
1 parent ccfc439 commit a3fe0e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,7 @@ static int dm_dmub_hw_init(struct amdgpu_device *adev)
937937
return 0;
938938
}
939939

940+
#if defined(CONFIG_DRM_AMD_DC_DCN)
940941
#define DMUB_TRACE_MAX_READ 64
941942
static void dm_dmub_trace_high_irq(void *interrupt_params)
942943
{
@@ -963,7 +964,6 @@ static void dm_dmub_trace_high_irq(void *interrupt_params)
963964
ASSERT(count <= DMUB_TRACE_MAX_READ);
964965
}
965966

966-
#if defined(CONFIG_DRM_AMD_DC_DCN)
967967
static void mmhub_read_system_context(struct amdgpu_device *adev, struct dc_phy_addr_space_config *pa_config)
968968
{
969969
uint64_t pt_base;

0 commit comments

Comments
 (0)