drm/amd/display: Turn global functions into static functions
Turn previously global functions into static functions to avoid -Wmissing-prototype warnings, such as: drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn30/irq_service_dcn30.c:50:20: warning: no previous prototype for function 'to_dal_irq_source_dcn30' [-Wmissing-prototypes] enum dc_irq_source to_dal_irq_source_dcn30( ^ drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn30/irq_service_dcn30.c:50:1: note: declare 'static' if the function is not intended to be used outside of this translation unit enum dc_irq_source to_dal_irq_source_dcn30( ^ static 1 warning generated. drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c:488:6: warning: no previous prototype for function 'dcn316_clk_mgr_helper_populate_bw_params' [-Wmissing-prototypes] void dcn316_clk_mgr_helper_populate_bw_params( ^ drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c:488:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void dcn316_clk_mgr_helper_populate_bw_params( ^ static 1 warning generated. v2: drop is_timing_changed hunk (Alex) Signed-off-by: Maíra Canal <maira.canal@usp.br> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
2bdcb12ff6
commit
f11d9373b6
@ -6387,7 +6387,7 @@ static bool is_freesync_video_mode(const struct drm_display_mode *mode,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct dc_stream_state *
|
static struct dc_stream_state *
|
||||||
create_stream_for_sink(struct amdgpu_dm_connector *aconnector,
|
create_stream_for_sink(struct amdgpu_dm_connector *aconnector,
|
||||||
const struct drm_display_mode *drm_mode,
|
const struct drm_display_mode *drm_mode,
|
||||||
const struct dm_connector_state *dm_state,
|
const struct dm_connector_state *dm_state,
|
||||||
@ -10214,7 +10214,7 @@ static void set_freesync_fixed_config(struct dm_crtc_state *dm_new_crtc_state) {
|
|||||||
dm_new_crtc_state->freesync_config.fixed_refresh_in_uhz = res;
|
dm_new_crtc_state->freesync_config.fixed_refresh_in_uhz = res;
|
||||||
}
|
}
|
||||||
|
|
||||||
int dm_update_crtc_state(struct amdgpu_display_manager *dm,
|
static int dm_update_crtc_state(struct amdgpu_display_manager *dm,
|
||||||
struct drm_atomic_state *state,
|
struct drm_atomic_state *state,
|
||||||
struct drm_crtc *crtc,
|
struct drm_crtc *crtc,
|
||||||
struct drm_crtc_state *old_crtc_state,
|
struct drm_crtc_state *old_crtc_state,
|
||||||
|
@ -213,7 +213,7 @@ static bool validate_dsc_caps_on_connector(struct amdgpu_dm_connector *aconnecto
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool retrieve_downstream_port_device(struct amdgpu_dm_connector *aconnector)
|
static bool retrieve_downstream_port_device(struct amdgpu_dm_connector *aconnector)
|
||||||
{
|
{
|
||||||
union dp_downstream_port_present ds_port_present;
|
union dp_downstream_port_present ds_port_present;
|
||||||
|
|
||||||
|
@ -101,7 +101,8 @@ static uint32_t rv1_smu_wait_for_response(struct clk_mgr_internal *clk_mgr, unsi
|
|||||||
return res_val;
|
return res_val;
|
||||||
}
|
}
|
||||||
|
|
||||||
int rv1_vbios_smu_send_msg_with_param(struct clk_mgr_internal *clk_mgr, unsigned int msg_id, unsigned int param)
|
static int rv1_vbios_smu_send_msg_with_param(struct clk_mgr_internal *clk_mgr,
|
||||||
|
unsigned int msg_id, unsigned int param)
|
||||||
{
|
{
|
||||||
uint32_t result;
|
uint32_t result;
|
||||||
|
|
||||||
|
@ -485,7 +485,7 @@ static unsigned int find_clk_for_voltage(
|
|||||||
return clock;
|
return clock;
|
||||||
}
|
}
|
||||||
|
|
||||||
void dcn316_clk_mgr_helper_populate_bw_params(
|
static void dcn316_clk_mgr_helper_populate_bw_params(
|
||||||
struct clk_mgr_internal *clk_mgr,
|
struct clk_mgr_internal *clk_mgr,
|
||||||
struct integrated_info *bios_info,
|
struct integrated_info *bios_info,
|
||||||
const DpmClocks_316_t *clock_table)
|
const DpmClocks_316_t *clock_table)
|
||||||
|
@ -111,7 +111,7 @@ static uint32_t dcn316_smu_wait_for_response(struct clk_mgr_internal *clk_mgr, u
|
|||||||
return res_val;
|
return res_val;
|
||||||
}
|
}
|
||||||
|
|
||||||
int dcn316_smu_send_msg_with_param(
|
static int dcn316_smu_send_msg_with_param(
|
||||||
struct clk_mgr_internal *clk_mgr,
|
struct clk_mgr_internal *clk_mgr,
|
||||||
unsigned int msg_id, unsigned int param)
|
unsigned int msg_id, unsigned int param)
|
||||||
{
|
{
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
#include "ivsrcid/dcn/irqsrcs_dcn_1_0.h"
|
#include "ivsrcid/dcn/irqsrcs_dcn_1_0.h"
|
||||||
|
|
||||||
enum dc_irq_source to_dal_irq_source_dcn20(
|
static enum dc_irq_source to_dal_irq_source_dcn20(
|
||||||
struct irq_service *irq_service,
|
struct irq_service *irq_service,
|
||||||
uint32_t src_id,
|
uint32_t src_id,
|
||||||
uint32_t ext_id)
|
uint32_t ext_id)
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
#include "ivsrcid/dcn/irqsrcs_dcn_1_0.h"
|
#include "ivsrcid/dcn/irqsrcs_dcn_1_0.h"
|
||||||
|
|
||||||
enum dc_irq_source to_dal_irq_source_dcn30(
|
static enum dc_irq_source to_dal_irq_source_dcn30(
|
||||||
struct irq_service *irq_service,
|
struct irq_service *irq_service,
|
||||||
uint32_t src_id,
|
uint32_t src_id,
|
||||||
uint32_t ext_id)
|
uint32_t ext_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user