* [radeon-alex:amd-staging-drm-next 63/158] drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/bandwidth_calcs.c:508:5: warning: this decimal constant is unsigned only in ISO C90
@ 2017-01-04 2:33 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-01-04 2:33 UTC (permalink / raw)
To: Harry Wentland; +Cc: Alex Deucher, kbuild-all, dri-devel
[-- Attachment #1: Type: text/plain, Size: 3926 bytes --]
tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head: 5d8e75c019bf76889bd606a67afabf7d0b32d3fa
commit: 5a0a709652ceaca0a36ef2d0954b8d9d3f690560 [63/158] drm/amd/dc: Add dc display driver
config: parisc-allyesconfig (attached as .config)
compiler: hppa-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
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 5a0a709652ceaca0a36ef2d0954b8d9d3f690560
# save the attached .config to linux build tree
make.cross ARCH=parisc
All warnings (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/bandwidth_calcs.c: In function 'calculate_bandwidth':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/bandwidth_calcs.c:508:5: warning: this decimal constant is unsigned only in ISO C90
data->lb_line_pitch = bw_ceil2(bw_mul(bw_div(bw_frc_to_fixed(2401171875, 100000000), bw_int_to_fixed(3)), bw_ceil2(data->source_width_in_lb, bw_int_to_fixed(8))), bw_int_to_fixed(48));
^~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/bandwidth_calcs.c:1712:362: warning: array subscript is above array bounds [-Warray-bounds]
data->blackout_recovery_time = bw_max2(data->blackout_recovery_time, bw_div((bw_add(bw_mul(bw_div(bw_mul(data->display_bandwidth[k], data->useful_bytes_per_request[k]), data->bytes_per_request[k]), vbios->blackout_duration), bw_sub(bw_div(bw_mul(bw_mul(bw_mul((bw_add(bw_add(bw_mul(bw_int_to_fixed(2), vbios->mcifwrmc_urgent_latency), data->dmif_burst_time[i][j]), data->mcifwr_burst_time[data->y_clk_level][data->sclk_level])), data->dispclk), bw_int_to_fixed(data->bytes_per_pixel[k])), data->lines_interleaved_in_mem_access[k]), data->latency_hiding_lines[k]), data->adjusted_data_buffer_size[k]))), (bw_sub(bw_div(bw_mul(bw_mul(data->dispclk, bw_int_to_fixed(data->bytes_per_pixel[k])), data->lines_interleaved_in_mem_access[k]), data->latency_hiding_lines[k]), bw_div(bw_mul(data->displ
ay_bandwidth[k], data->useful_bytes_per_request[k]), data->bytes_per_request[k])))));
~~~~~~~~~~~~~~~~~~~~~^~~
vim +508 drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/bandwidth_calcs.c
492 }
493 }
494 }
495 }
496 }
497 lb_size_check = bw_def_ok;
498 for (i = 0; i <= maximum_number_of_surfaces - 1; i++) {
499 if (data->enable[i]) {
500 if ((dceip->pre_downscaler_enabled && bw_mtn(data->hsr[i], bw_int_to_fixed(1)))) {
501 data->source_width_in_lb = bw_div(data->source_width_pixels[i], data->hsr[i]);
502 }
503 else {
504 data->source_width_in_lb = data->source_width_pixels[i];
505 }
506 switch (data->lb_bpc[i]) {
507 case 8:
> 508 data->lb_line_pitch = bw_ceil2(bw_mul(bw_div(bw_frc_to_fixed(2401171875, 100000000), bw_int_to_fixed(3)), bw_ceil2(data->source_width_in_lb, bw_int_to_fixed(8))), bw_int_to_fixed(48));
509 break;
510 case 10:
511 data->lb_line_pitch = bw_ceil2(bw_mul(bw_div(bw_frc_to_fixed(300234375, 10000000), bw_int_to_fixed(3)), bw_ceil2(data->source_width_in_lb, bw_int_to_fixed(8))), bw_int_to_fixed(48));
512 break;
513 default:
514 data->lb_line_pitch = bw_ceil2(bw_mul(bw_int_to_fixed(data->lb_bpc[i]), data->source_width_in_lb), bw_int_to_fixed(48));
515 break;
516 }
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 47642 bytes --]
[-- Attachment #3: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-01-04 2:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-04 2:33 [radeon-alex:amd-staging-drm-next 63/158] drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/bandwidth_calcs.c:508:5: warning: this decimal constant is unsigned only in ISO C90 kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.