OSDN Git Service

drm/amd/display: make enc314_stream_encoder_dvi_set_stream_attribute static
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Wed, 14 Sep 2022 05:27:36 +0000 (13:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Sep 2022 16:38:52 +0000 (12:38 -0400)
This symbol is not used outside of dcn314_dio_stream_encoder.c, so marks
it static.

drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_dio_stream_encoder.c:84:6: warning: no previous prototype for ‘enc314_stream_encoder_dvi_set_stream_attribute’.

Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2146
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dio_stream_encoder.c

index 06d8638..914c5da 100644 (file)
@@ -80,7 +80,7 @@ static void enc314_dp_set_odm_combine(
 }
 
 /* setup stream encoder in dvi mode */
-void enc314_stream_encoder_dvi_set_stream_attribute(
+static void enc314_stream_encoder_dvi_set_stream_attribute(
        struct stream_encoder *enc,
        struct dc_crtc_timing *crtc_timing,
        bool is_dual_link)