[radeon-alex:amd-staging-4.7 1591/1595] drivers/gpu/drm/amd/amdgpu/../dal/dc/i2caux/dce110/i2c_hw_engine_dce110.c:106:21: warning: unused variable 'ctx'

kbuild test robot fengguang.wu at intel.com
Fri Oct 7 03:45:34 UTC 2016


tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-4.7
head:   a776b1b07d41d92a8ea3d38b844300f25cd0aa8f
commit: 5db01f121bbd38ff2bb95fba4c5ec6b71120b6c5 [1591/1595] drm/amd/dal: Refactor i2c hw engine.
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 5db01f121bbd38ff2bb95fba4c5ec6b71120b6c5
        # save the attached .config to linux build tree
        make.cross ARCH=ia64 

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../dal/dc/i2caux/dce110/i2c_hw_engine_dce110.c: In function 'disable_i2c_hw_engine':
>> drivers/gpu/drm/amd/amdgpu/../dal/dc/i2caux/dce110/i2c_hw_engine_dce110.c:106:21: warning: unused variable 'ctx' [-Wunused-variable]
     struct dc_context *ctx = NULL;
                        ^~~

vim +/ctx +106 drivers/gpu/drm/amd/amdgpu/../dal/dc/i2caux/dce110/i2c_hw_engine_dce110.c

471b9fe0 Harry Wentland 2015-11-25   90   * to 'pointer to struct i2c_hw_engine_dce110 *'
471b9fe0 Harry Wentland 2015-11-25   91   */
471b9fe0 Harry Wentland 2015-11-25   92  #define FROM_ENGINE(ptr) \
471b9fe0 Harry Wentland 2015-11-25   93  	FROM_I2C_ENGINE(container_of((ptr), struct i2c_engine, base))
471b9fe0 Harry Wentland 2015-11-25   94  
5db01f12 Yongqiang Sun  2016-09-22   95  #define CTX \
5db01f12 Yongqiang Sun  2016-09-22   96  		hw_engine->base.base.base.ctx
5db01f12 Yongqiang Sun  2016-09-22   97  #define REG(reg_name)\
5db01f12 Yongqiang Sun  2016-09-22   98  	(hw_engine->regs->reg_name)
5db01f12 Yongqiang Sun  2016-09-22   99  #include "reg_helper.h"
5db01f12 Yongqiang Sun  2016-09-22  100  
5db01f12 Yongqiang Sun  2016-09-22  101  
471b9fe0 Harry Wentland 2015-11-25  102  static void disable_i2c_hw_engine(
5db01f12 Yongqiang Sun  2016-09-22  103  	struct i2c_hw_engine_dce110 *hw_engine)
471b9fe0 Harry Wentland 2015-11-25  104  {
471b9fe0 Harry Wentland 2015-11-25  105  	uint32_t value = 0;
471b9fe0 Harry Wentland 2015-11-25 @106  	struct dc_context *ctx = NULL;
471b9fe0 Harry Wentland 2015-11-25  107  
5db01f12 Yongqiang Sun  2016-09-22  108  	value = REG_READ(SETUP);
471b9fe0 Harry Wentland 2015-11-25  109  
471b9fe0 Harry Wentland 2015-11-25  110  	set_reg_field_value(
471b9fe0 Harry Wentland 2015-11-25  111  		value,
471b9fe0 Harry Wentland 2015-11-25  112  		0,
471b9fe0 Harry Wentland 2015-11-25  113  		DC_I2C_DDC1_SETUP,
471b9fe0 Harry Wentland 2015-11-25  114  		DC_I2C_DDC1_ENABLE);

:::::: The code at line 106 was first introduced by commit
:::::: 471b9fe0f46473b03141a1cda8301ee6e2ad0fdd drm/amd/dal: Add dal display driver

:::::: TO: Harry Wentland <harry.wentland 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: 43764 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161007/49c9839d/attachment-0001.gz>


More information about the dri-devel mailing list