Commit 6f2bde9b authored by Rodrigo Siqueira's avatar Rodrigo Siqueira Committed by Alex Deucher
Browse files

drm/amd/display: Add missing static



After enable DRM_AMDGPU_WERROR, clang highlight multiple functions that
need to have `static`, and this commit address those issues and also
improve the indents.

Reviewed-by: default avatarHamza Mahfooz <hamza.mahfooz@amd.com>
Acked-by: default avatarAlan Liu <haoping.liu@amd.com>
Signed-off-by: default avatarRodrigo Siqueira <rodrigo.siqueira@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent c324065c
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -50,8 +50,7 @@ bool dal_vector_construct(
	return true;
}

static bool dal_vector_presized_costruct(
	struct vector *vector,
static bool dal_vector_presized_costruct(struct vector *vector,
					 struct dc_context *ctx,
					 uint32_t count,
					 void *initial_value,
+7 −9
Original line number Diff line number Diff line
@@ -2593,8 +2593,7 @@ static struct integrated_info *bios_parser_create_integrated_info(
	return NULL;
}

static enum bp_result update_slot_layout_info(
	struct dc_bios *dcb,
static enum bp_result update_slot_layout_info(struct dc_bios *dcb,
					      unsigned int i,
					      struct slot_layout_info *slot_layout_info,
					      unsigned int record_offset)
@@ -2696,8 +2695,7 @@ static enum bp_result update_slot_layout_info(
}


static enum bp_result get_bracket_layout_record(
	struct dc_bios *dcb,
static enum bp_result get_bracket_layout_record(struct dc_bios *dcb,
						unsigned int bracket_layout_id,
						struct slot_layout_info *slot_layout_info)
{
+8 −12
Original line number Diff line number Diff line
@@ -340,8 +340,7 @@ static struct atom_display_object_path_v2 *get_bios_object(
}

/* from graphics_object_id, find display path which includes the object_id */
static struct atom_display_object_path_v3 *get_bios_object_from_path_v3(
	struct bios_parser *bp,
static struct atom_display_object_path_v3 *get_bios_object_from_path_v3(struct bios_parser *bp,
									struct graphics_object_id id)
{
	unsigned int i;
@@ -521,8 +520,7 @@ static enum bp_result get_gpio_i2c_info(
	return BP_RESULT_OK;
}

static struct atom_hpd_int_record *get_hpd_record_for_path_v3(
	struct bios_parser *bp,
static struct atom_hpd_int_record *get_hpd_record_for_path_v3(struct bios_parser *bp,
							      struct atom_display_object_path_v3 *object)
{
	struct atom_common_record_header *header;
@@ -2175,8 +2173,7 @@ static struct atom_disp_connector_caps_record *get_disp_connector_caps_record(
	return NULL;
}

static struct atom_connector_caps_record *get_connector_caps_record(
	struct bios_parser *bp,
static struct atom_connector_caps_record *get_connector_caps_record(struct bios_parser *bp,
								    struct atom_display_object_path_v3 *object)
{
	struct atom_common_record_header *header;
@@ -2264,8 +2261,7 @@ static enum bp_result bios_parser_get_disp_connector_caps_info(
	return BP_RESULT_OK;
}

static struct atom_connector_speed_record *get_connector_speed_cap_record(
	struct bios_parser *bp,
static struct atom_connector_speed_record *get_connector_speed_cap_record(struct bios_parser *bp,
									  struct atom_display_object_path_v3 *object)
{
	struct atom_common_record_header *header;
+4 −2
Original line number Diff line number Diff line
@@ -1047,8 +1047,10 @@ static void disable_all_writeback_pipes_for_stream(
		stream->writeback_info[i].wb_enabled = false;
}

static void apply_ctx_interdependent_lock(struct dc *dc, struct dc_state *context,
					  struct dc_stream_state *stream, bool lock)
static void apply_ctx_interdependent_lock(struct dc *dc,
					  struct dc_state *context,
					  struct dc_stream_state *stream,
					  bool lock)
{
	int i;

+1 −0
Original line number Diff line number Diff line
@@ -187,6 +187,7 @@ static bool is_ycbcr709_limited_type(
		ret = true;
	return ret;
}

static enum dc_color_space_type get_color_space_type(enum dc_color_space color_space)
{
	enum dc_color_space_type type = COLOR_SPACE_RGB_TYPE;
Loading