[radeon-alex:drm-next-4.21-wip 72/72] drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:163:35: warning: incorrect type in assignment (different base types)

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

 



tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-4.21-wip
head:   6be068c27b290af91689304898e484573e3bb4f1
commit: 6be068c27b290af91689304898e484573e3bb4f1 [72/72] drm/amdgpu: support Vega20 A1 ASICs
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 6be068c27b290af91689304898e484573e3bb4f1
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:163:35: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:163:35:    expected unsigned short [unsigned] [addressable] [assigned] [usertype] blRampReduction
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:163:35:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:165:31: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:165:31:    expected unsigned short [unsigned] [addressable] [assigned] [usertype] blRampStart
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:165:31:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:296:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:296:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:296:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:297:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:297:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:297:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:298:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:298:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:298:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:299:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:299:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:299:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:300:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:300:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:300:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:301:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:301:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:301:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:302:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:302:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:302:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:303:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:303:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:303:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:304:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:304:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:304:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:305:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:305:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:305:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:306:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:306:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:306:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:307:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:307:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:307:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:308:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:308:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:308:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:309:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:309:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:309:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:310:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:310:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:310:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:311:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:311:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:311:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:312:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:312:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:312:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:313:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:313:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:313:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:314:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:314:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:314:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:315:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:315:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:315:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:316:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:316:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:316:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:317:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:317:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:317:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:318:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:318:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:318:34:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:319:34: warning: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:319:34:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:319:34:    got restricted __be16 [usertype] <noident>

vim +163 drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c

bbf854dc David Francis 2018-11-26  145  
bbf854dc David Francis 2018-11-26  146  bool dmcu_load_iram(struct dmcu *dmcu,
bbf854dc David Francis 2018-11-26  147  	struct dmcu_iram_parameters params)
bbf854dc David Francis 2018-11-26  148  {
bbf854dc David Francis 2018-11-26  149  	struct iram_table_v_2 ram_table;
bbf854dc David Francis 2018-11-26  150  	unsigned int set = params.set;
bbf854dc David Francis 2018-11-26  151  
bbf854dc David Francis 2018-11-26  152  	if (dmcu == NULL)
bbf854dc David Francis 2018-11-26  153  		return false;
bbf854dc David Francis 2018-11-26  154  
bbf854dc David Francis 2018-11-26  155  	if (!dmcu->funcs->is_dmcu_initialized(dmcu))
bbf854dc David Francis 2018-11-26  156  		return true;
bbf854dc David Francis 2018-11-26  157  
bbf854dc David Francis 2018-11-26  158  	memset(&ram_table, 0, sizeof(ram_table));
bbf854dc David Francis 2018-11-26  159  
bbf854dc David Francis 2018-11-26  160  	ram_table.flags = 0x0;
bbf854dc David Francis 2018-11-26  161  	ram_table.deviation_gain = 0xb3;
bbf854dc David Francis 2018-11-26  162  
bbf854dc David Francis 2018-11-26 @163  	ram_table.blRampReduction =

:::::: The code at line 163 was first introduced by commit
:::::: bbf854dc3570eb0a2b9d851f21e363e1570c717e drm/amd/display: Load DMCU IRAM

:::::: TO: David Francis <David.Francis@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