[PATCH] drm/amd/display/dc: Make dce110_validate_bandwidth static (v2)

Alex Deucher alexdeucher at gmail.com
Fri Aug 4 02:25:21 UTC 2017


Not used outside of the dce110_resource.c.

v2: make a bunch of other functions static as well.

Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c
index 8b7bc1c..dfac5d0 100644
--- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c
@@ -565,7 +565,7 @@ static const struct encoder_feature_support link_enc_feature = {
 		.flags.bits.IS_YCBCR_CAPABLE = true
 };
 
-struct link_encoder *dce110_link_encoder_create(
+static struct link_encoder *dce110_link_encoder_create(
 	const struct encoder_init_data *enc_init_data)
 {
 	struct dce110_link_encoder *enc110 =
@@ -830,7 +830,7 @@ static enum dc_status validate_mapped_resource(
 	return DC_OK;
 }
 
-bool dce110_validate_bandwidth(
+static bool dce110_validate_bandwidth(
 	const struct core_dc *dc,
 	struct validate_context *context)
 {
@@ -944,7 +944,7 @@ static bool dce110_validate_surface_sets(
 	return true;
 }
 
-enum dc_status dce110_validate_with_context(
+static enum dc_status dce110_validate_with_context(
 		const struct core_dc *dc,
 		const struct dc_validation_set set[],
 		int set_count,
@@ -988,7 +988,7 @@ enum dc_status dce110_validate_with_context(
 	return result;
 }
 
-enum dc_status dce110_validate_guaranteed(
+static enum dc_status dce110_validate_guaranteed(
 		const struct core_dc *dc,
 		const struct dc_stream *dc_stream,
 		struct validate_context *context)
-- 
2.5.5



More information about the amd-gfx mailing list