From 8db02ca3410b0668d520c0c5d7ba0e7e3eaa811a Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Wed, 11 Oct 2017 10:03:10 -0400 Subject: [PATCH] drm/amd/display: make amdgpu_dm_irq_handler static It's not used outside the file. Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c | 6 +++--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.h | 9 --------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c index 1b7df0b6c6d3..52b6e4a91d8b 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c @@ -560,9 +560,9 @@ static void amdgpu_dm_irq_immediate_work(struct amdgpu_device *adev, * Generic IRQ handler, calls all registered high irq work immediately, and * schedules work for low irq */ -int amdgpu_dm_irq_handler(struct amdgpu_device *adev, - struct amdgpu_irq_src *source, - struct amdgpu_iv_entry *entry) +static int amdgpu_dm_irq_handler(struct amdgpu_device *adev, + struct amdgpu_irq_src *source, + struct amdgpu_iv_entry *entry) { enum dc_irq_source src = diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.h b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.h index 393fcf7bbcb4..82f8e761beca 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.h +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.h @@ -80,15 +80,6 @@ void amdgpu_dm_irq_unregister_interrupt(struct amdgpu_device *adev, enum dc_irq_source irq_source, void *ih_index); -/** - * amdgpu_dm_irq_handler - * Generic IRQ handler, calls all registered high irq work immediately, and - * schedules work for low irq - */ -int amdgpu_dm_irq_handler(struct amdgpu_device *adev, - struct amdgpu_irq_src *source, - struct amdgpu_iv_entry *entry); - void amdgpu_dm_set_irq_funcs(struct amdgpu_device *adev); void amdgpu_dm_hpd_init(struct amdgpu_device *adev); -- 2.30.2