[radeon-alex:drm-next-4.8-wip-dal 90/562] drivers/gpu/drm/amd/amdgpu/../dal/dc/calcs/bandwidth_calcs.c:2780:7: error: array subscript is above array bounds

kbuild test robot fengguang.wu at intel.com
Fri May 27 03:54:39 UTC 2016


tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-4.8-wip-dal
head:   febc9e1f8b905e5df7b34fb697ffc4968a940577
commit: e49c5c3ebe679dfc69b9e854dd717ee8ed64d4c9 [90/562] drm/amd/dal: Simplify return value for HW programming
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout e49c5c3ebe679dfc69b9e854dd717ee8ed64d4c9
        # save the attached .config to linux build tree
        make ARCH=i386 

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.

Note: the radeon-alex/drm-next-4.8-wip-dal HEAD febc9e1f8b905e5df7b34fb697ffc4968a940577 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):


vim +2780 drivers/gpu/drm/amd/amdgpu/../dal/dc/calcs/bandwidth_calcs.c

b25f1184 Harry Wentland 2015-11-25  2764  				if (ltn(results->adjusted_data_buffer_size[k],
b25f1184 Harry Wentland 2015-11-25  2765  					mul(
b25f1184 Harry Wentland 2015-11-25  2766  						bw_div(
b25f1184 Harry Wentland 2015-11-25  2767  							mul(
b25f1184 Harry Wentland 2015-11-25  2768  								results->display_bandwidth[k],
b25f1184 Harry Wentland 2015-11-25  2769  								results->useful_bytes_per_request[k]),
b25f1184 Harry Wentland 2015-11-25  2770  							results->bytes_per_request[k]),
b25f1184 Harry Wentland 2015-11-25  2771  						(add(
b25f1184 Harry Wentland 2015-11-25  2772  							add(
b25f1184 Harry Wentland 2015-11-25  2773  								vbios->blackout_duration,
b25f1184 Harry Wentland 2015-11-25  2774  								mul(
b25f1184 Harry Wentland 2015-11-25  2775  									vbios->mcifwrmc_urgent_latency,
b25f1184 Harry Wentland 2015-11-25  2776  									int_to_fixed(
b25f1184 Harry Wentland 2015-11-25  2777  										2))),
b25f1184 Harry Wentland 2015-11-25  2778  							results->mcifwr_burst_time[y_clk_level][sclk_level]))))) {
b25f1184 Harry Wentland 2015-11-25  2779  					results->blackout_recovery_time =
b25f1184 Harry Wentland 2015-11-25 @2780  						bw_max(
b25f1184 Harry Wentland 2015-11-25  2781  							results->blackout_recovery_time,
b25f1184 Harry Wentland 2015-11-25  2782  							bw_div(
b25f1184 Harry Wentland 2015-11-25  2783  								(sub(
b25f1184 Harry Wentland 2015-11-25  2784  									add(
b25f1184 Harry Wentland 2015-11-25  2785  										mul(
b25f1184 Harry Wentland 2015-11-25  2786  											bw_div(
b25f1184 Harry Wentland 2015-11-25  2787  												mul(
b25f1184 Harry Wentland 2015-11-25  2788  													results->display_bandwidth[k],

:::::: The code at line 2780 was first introduced by commit
:::::: b25f11849e8d924d7a4022cbaf5455369c7aa7e7 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/octet-stream
Size: 54531 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160527/fac37c37/attachment-0001.obj>


More information about the dri-devel mailing list