[radeon-alex:amd-staging-4.7 1641/1662] drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_link_encoder.c:294:21: warning: unused variable 'ctx'

kbuild test robot fengguang.wu at intel.com
Sat Oct 15 00:58:55 UTC 2016


tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-4.7
head:   091705fb62afea9598c29e600bcb211f44e86cec
commit: b73f7c9f9e12db516db97aaf2c5dc5002ade2e1b [1641/1662] drm/amd/dal: Link Encoder Refactor part 2.
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout b73f7c9f9e12db516db97aaf2c5dc5002ade2e1b
        # 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_link_encoder.c: In function 'set_dp_phy_pattern_symbol_error':
   drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_link_encoder.c:303:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
      uint32_t value = 0x0;
      ^~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_link_encoder.c:294:21: warning: unused variable 'ctx' [-Wunused-variable]
     struct dc_context *ctx = enc110->base.ctx;
                        ^~~
   drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_link_encoder.c: In function 'link_encoder_disable':
   drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_link_encoder.c:790:21: warning: unused variable 'ctx' [-Wunused-variable]
     struct dc_context *ctx = enc110->base.ctx;
                        ^~~
   drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_link_encoder.c: In function 'dce110_link_encoder_init_dmcu_backlight_settings':
   drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_link_encoder.c:1805:21: warning: unused variable 'ctx' [-Wunused-variable]
     struct dc_context *ctx = enc110->base.ctx;
                        ^~~
   drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_link_encoder.c: In function 'dce110_link_encoder_connect_dig_be_to_fe':
   drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_link_encoder.c:2134:21: warning: unused variable 'ctx' [-Wunused-variable]
     struct dc_context *ctx = enc110->base.ctx;
                        ^~~

vim +/ctx +294 drivers/gpu/drm/amd/amdgpu/../dal/dc/dce110/dce110_link_encoder.c

471b9fe0 Harry Wentland 2015-11-25  288  }
471b9fe0 Harry Wentland 2015-11-25  289  
471b9fe0 Harry Wentland 2015-11-25  290  static void set_dp_phy_pattern_symbol_error(
c5454461 Chris Park     2015-11-30  291  	struct dce110_link_encoder *enc110)
471b9fe0 Harry Wentland 2015-11-25  292  {
471b9fe0 Harry Wentland 2015-11-25  293  	/* Disable PHY Bypass mode to setup the test pattern */
c5454461 Chris Park     2015-11-30 @294  	struct dc_context *ctx = enc110->base.ctx;
471b9fe0 Harry Wentland 2015-11-25  295  
c5454461 Chris Park     2015-11-30  296  	enable_phy_bypass_mode(enc110, false);
471b9fe0 Harry Wentland 2015-11-25  297  
471b9fe0 Harry Wentland 2015-11-25  298  	/* program correct panel mode*/
471b9fe0 Harry Wentland 2015-11-25  299  	{
b73f7c9f Zeyu Fan       2016-10-06  300  		ASSERT(REG(DP_DPHY_INTERNAL_CTRL));
b73f7c9f Zeyu Fan       2016-10-06  301  		/*DCE 120 does not have this reg*/
b73f7c9f Zeyu Fan       2016-10-06  302  
471b9fe0 Harry Wentland 2015-11-25 @303  		uint32_t value = 0x0;
b73f7c9f Zeyu Fan       2016-10-06  304  		REG_WRITE(DP_DPHY_INTERNAL_CTRL, value);
471b9fe0 Harry Wentland 2015-11-25  305  	}
471b9fe0 Harry Wentland 2015-11-25  306  

:::::: The code at line 294 was first introduced by commit
:::::: c5454461cd2d25ebddf0a2a2e7360bb3ad5d6eea drm/amd/dal: Register offset cleanup on Link and Stream Encoder

:::::: TO: Chris Park <Chris.Park at amd.com>
:::::: CC: Alex Deucher <alexander.deucher at amd.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 55094 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161015/9a50d438/attachment-0001.gz>


More information about the dri-devel mailing list