tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-4.7 head: 40e923b4f9d40cf4ef12b6b11b6159813f2172b2 commit: e04f4838f0d54775ee70efc8f66c75b69b2864f6 [1519/1548] drm/amd/dal: refactor dce110 stream encoder. config: i386-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: git checkout e04f4838f0d54775ee70efc8f66c75b69b2864f6 # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c: In function 'dce110_update_generic_info_packet': >> drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c:62:21: warning: unused variable 'ctx' [-Wunused-variable] struct dc_context *ctx = enc110->base.ctx; ^~~ drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c: In function 'dce110_stream_encoder_hdmi_set_stream_attribute': drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c:273:21: warning: unused variable 'ctx' [-Wunused-variable] struct dc_context *ctx = enc110->base.ctx; ^~~ drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c: In function 'dce110_stream_encoder_dvi_set_stream_attribute': drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c:377:11: warning: unused variable 'value' [-Wunused-variable] uint32_t value = dm_read_reg(ctx, addr); ^~~~~ drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c: In function 'dce110_stream_encoder_update_hdmi_info_packets': drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c:469:21: warning: unused variable 'ctx' [-Wunused-variable] struct dc_context *ctx = enc110->base.ctx; ^~~ drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c: In function 'dce110_stream_encoder_stop_hdmi_info_packets': drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c:511:11: warning: unused variable 'value' [-Wunused-variable] uint32_t value = 0; ^~~~~ drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c:510:11: warning: unused variable 'addr' [-Wunused-variable] uint32_t addr = 0; ^~~~ drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c:509:21: warning: unused variable 'ctx' [-Wunused-variable] struct dc_context *ctx = enc110->base.ctx; ^~~ drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c: In function 'dce110_stream_encoder_update_dp_info_packets': drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c:543:11: warning: unused variable 'addr' [-Wunused-variable] uint32_t addr = REG(DP_SEC_CNTL); ^~~~ drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c:542:21: warning: unused variable 'ctx' [-Wunused-variable] struct dc_context *ctx = enc110->base.ctx; ^~~ drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c: In function 'dce110_stream_encoder_stop_dp_info_packets': drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c:573:21: warning: unused variable 'ctx' [-Wunused-variable] struct dc_context *ctx = enc110->base.ctx; ^~~ drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c: In function 'dce110_stream_encoder_dp_blank': drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c:598:21: warning: unused variable 'ctx' [-Wunused-variable] struct dc_context *ctx = enc110->base.ctx; ^~~ drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c: In function 'dce110_stream_encoder_dp_unblank': drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c:658:21: warning: unused variable 'ctx' [-Wunused-variable] struct dc_context *ctx = enc110->base.ctx; ^~~ drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c: In function 'dce110_se_setup_hdmi_audio': drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c:1033:11: warning: unused variable 'value' [-Wunused-variable] uint32_t value = 0; ^~~~~ drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c:1032:11: warning: unused variable 'addr' [-Wunused-variable] uint32_t addr = 0; ^~~~ drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c: In function 'dce110_se_setup_dp_audio': drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c:1116:11: warning: unused variable 'value' [-Wunused-variable] uint32_t value = 0; ^~~~~ drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c:1115:11: warning: unused variable 'addr' [-Wunused-variable] uint32_t addr = 0; ^~~~ vim +/ctx +62 drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_stream_encoder.c 471b9fe0 Harry Wentland 2015-11-25 46 5d52770c Chris Park 2015-11-25 47 enum { 5d52770c Chris Park 2015-11-25 48 DP_MST_UPDATE_MAX_RETRY = 50 5d52770c Chris Park 2015-11-25 49 }; 5d52770c Chris Park 2015-11-25 50 e04f4838 Zeyu Fan 2016-09-21 51 #define DCE110_SE(audio)\ e04f4838 Zeyu Fan 2016-09-21 52 container_of(audio, struct dce110_stream_encoder, base) e04f4838 Zeyu Fan 2016-09-21 53 e04f4838 Zeyu Fan 2016-09-21 54 #define CTX \ e04f4838 Zeyu Fan 2016-09-21 55 enc110->base.ctx e04f4838 Zeyu Fan 2016-09-21 56 0ba58a40 Chris Park 2016-01-07 57 static void dce110_update_generic_info_packet( c5454461 Chris Park 2015-11-30 58 struct dce110_stream_encoder *enc110, 471b9fe0 Harry Wentland 2015-11-25 59 uint32_t packet_index, 471b9fe0 Harry Wentland 2015-11-25 60 const struct encoder_info_packet *info_packet) 471b9fe0 Harry Wentland 2015-11-25 61 { c5454461 Chris Park 2015-11-30 @62 struct dc_context *ctx = enc110->base.ctx; 471b9fe0 Harry Wentland 2015-11-25 63 uint32_t addr; 471b9fe0 Harry Wentland 2015-11-25 64 uint32_t regval; 471b9fe0 Harry Wentland 2015-11-25 65 /* choose which generic packet to use */ 471b9fe0 Harry Wentland 2015-11-25 66 { e04f4838 Zeyu Fan 2016-09-21 67 regval = REG_READ(AFMT_VBI_PACKET_CONTROL); e04f4838 Zeyu Fan 2016-09-21 68 REG_UPDATE(AFMT_VBI_PACKET_CONTROL, e04f4838 Zeyu Fan 2016-09-21 69 AFMT_GENERIC_INDEX, packet_index); 471b9fe0 Harry Wentland 2015-11-25 70 } :::::: The code at line 62 was first introduced by commit :::::: c5454461cd2d25ebddf0a2a2e7360bb3ad5d6eea drm/amd/dal: Register offset cleanup on Link and Stream Encoder :::::: TO: Chris Park <Chris.Park@xxxxxxx> :::::: CC: Alex Deucher <alexander.deucher@xxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel