[radeon-alex:amd-staging-4.7 1514/1548] drivers/gpu/drm/amd/amdgpu/../dal/dc/i2caux/dce110/aux_engine_dce110.c:111:11: warning: unused variable 'counter'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-4.7
head:   40e923b4f9d40cf4ef12b6b11b6159813f2172b2
commit: c513f4e4fcad6a663c3306be4f83e469173186fe [1514/1548] drm/amd/dal: refactor aux 3
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout c513f4e4fcad6a663c3306be4f83e469173186fe
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../dal/dc/i2caux/dce110/aux_engine_dce110.c: In function 'acquire_engine':
>> drivers/gpu/drm/amd/amdgpu/../dal/dc/i2caux/dce110/aux_engine_dce110.c:111:11: warning: unused variable 'counter' [-Wunused-variable]
      uint8_t counter = 0;
              ^~~~~~~
   At top level:
   drivers/gpu/drm/amd/amdgpu/../dal/dc/i2caux/dce110/aux_engine_dce110.c:161:13: warning: 'configure' defined but not used [-Wunused-function]
    static void configure(
                ^~~~~~~~~

vim +/counter +111 drivers/gpu/drm/amd/amdgpu/../dal/dc/i2caux/dce110/aux_engine_dce110.c

471b9fe0 Harry Wentland 2015-11-25   95  
471b9fe0 Harry Wentland 2015-11-25   96  #define SW_CAN_ACCESS_AUX 1
471b9fe0 Harry Wentland 2015-11-25   97  
471b9fe0 Harry Wentland 2015-11-25   98  static bool acquire_engine(
471b9fe0 Harry Wentland 2015-11-25   99  	struct aux_engine *engine)
471b9fe0 Harry Wentland 2015-11-25  100  {
c513f4e4 Tony Cheng     2016-09-17  101  	struct aux_engine_dce110 *aux110 = FROM_AUX_ENGINE(engine);
c513f4e4 Tony Cheng     2016-09-17  102  	bool acquire_reset = true;  /*DCE11 = 1, DCE8 = 0 */
471b9fe0 Harry Wentland 2015-11-25  103  
471b9fe0 Harry Wentland 2015-11-25  104  	/* enable AUX before request SW to access AUX */
c513f4e4 Tony Cheng     2016-09-17  105  	uint32_t value = REG_READ(AUX_CONTROL);
c513f4e4 Tony Cheng     2016-09-17  106  	uint32_t field = get_reg_field_value(value,
471b9fe0 Harry Wentland 2015-11-25  107  				AUX_CONTROL,
471b9fe0 Harry Wentland 2015-11-25  108  				AUX_EN);
471b9fe0 Harry Wentland 2015-11-25  109  
471b9fe0 Harry Wentland 2015-11-25  110  	if (field == 0) {
471b9fe0 Harry Wentland 2015-11-25 @111  		uint8_t counter = 0;
471b9fe0 Harry Wentland 2015-11-25  112  
471b9fe0 Harry Wentland 2015-11-25  113  		set_reg_field_value(
471b9fe0 Harry Wentland 2015-11-25  114  				value,
471b9fe0 Harry Wentland 2015-11-25  115  				1,
471b9fe0 Harry Wentland 2015-11-25  116  				AUX_CONTROL,
471b9fe0 Harry Wentland 2015-11-25  117  				AUX_EN);
471b9fe0 Harry Wentland 2015-11-25  118  
c513f4e4 Tony Cheng     2016-09-17  119  		if (acquire_reset) {

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

:::::: TO: Harry Wentland <harry.wentland@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

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux