lkml.org 
[lkml]   [2021]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/gpu/drm/amd/amdgpu/../display/modules/color/color_gamma.c:1694:36: warning: implicit conversion from 'enum <anonymous>' to 'enum dc_transfer_func_predefined'
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf
commit: 9b3d76527f6ea50270f7f7ac749493b41783e8bd drm/amd/display: Revert adding degamma coefficients
date: 9 weeks ago
config: mips-randconfig-r034-20210928 (attached as .config)
compiler: mips-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9b3d76527f6ea50270f7f7ac749493b41783e8bd
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 9b3d76527f6ea50270f7f7ac749493b41783e8bd
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=mips

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

drivers/gpu/drm/amd/amdgpu/../display/modules/color/color_gamma.c: In function 'apply_degamma_for_user_regamma':
>> drivers/gpu/drm/amd/amdgpu/../display/modules/color/color_gamma.c:1694:36: warning: implicit conversion from 'enum <anonymous>' to 'enum dc_transfer_func_predefined' [-Wenum-conversion]
1694 | build_coefficients(&coeff, true);
| ^~~~


vim +1694 drivers/gpu/drm/amd/amdgpu/../display/modules/color/color_gamma.c

1684
1685 static void apply_degamma_for_user_regamma(struct pwl_float_data_ex *rgb_regamma,
1686 uint32_t hw_points_num, struct calculate_buffer *cal_buffer)
1687 {
1688 uint32_t i;
1689
1690 struct gamma_coefficients coeff;
1691 struct pwl_float_data_ex *rgb = rgb_regamma;
1692 const struct hw_x_point *coord_x = coordinates_x;
1693
> 1694 build_coefficients(&coeff, true);
1695
1696 i = 0;
1697 while (i != hw_points_num + 1) {
1698 rgb->r = translate_from_linear_space_ex(
1699 coord_x->x, &coeff, 0, cal_buffer);
1700 rgb->g = rgb->r;
1701 rgb->b = rgb->r;
1702 ++coord_x;
1703 ++rgb;
1704 ++i;
1705 }
1706 }
1707

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-11-15 04:27    [W:0.128 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site