Re: [PATCH v5 20/44] drm/tests: Add a few tests around drm_fixed.h

2024-08-21 Thread kernel test robot
Hi Harry,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm/drm-next]
[also build test ERROR on drm-exynos/exynos-drm-next drm-intel/for-linux-next 
drm-intel/for-linux-next-fixes drm-misc/drm-misc-next drm-tip/drm-tip 
linus/master v6.11-rc4 next-20240820]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Harry-Wentland/drm-Add-helper-for-conversion-from-signed-magnitude/20240820-050138
base:   git://anongit.freedesktop.org/drm/drm drm-next
patch link:
https://lore.kernel.org/r/20240819205714.316380-21-harry.wentland%40amd.com
patch subject: [PATCH v5 20/44] drm/tests: Add a few tests around drm_fixed.h
config: parisc-randconfig-001-20240821 
(https://download.01.org/0day-ci/archive/20240821/202408211157.n8ubzpfl-...@intel.com/config)
compiler: hppa-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20240821/202408211157.n8ubzpfl-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202408211157.n8ubzpfl-...@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/tests/drm_fixp_test.c:6:
   drivers/gpu/drm/tests/drm_fixp_test.c: In function 'drm_test_sm2fixp':
>> drivers/gpu/drm/tests/drm_fixp_test.c:11:66: error: integer overflow in 
>> expression of type 'long long int' results in '9223372036854775807' 
>> [-Werror=overflow]
  11 | KUNIT_EXPECT_EQ(test, 0x7fffll, ((1LL << 63) - 
1));
 |  ^
   include/kunit/test.h:725:40: note: in definition of macro 
'KUNIT_BASE_BINARY_ASSERTION'
 725 | const typeof(right) __right = (right);   
  \
 |^
   include/kunit/test.h:920:9: note: in expansion of macro 
'KUNIT_BINARY_INT_ASSERTION'
 920 | KUNIT_BINARY_INT_ASSERTION(test, 
  \
 | ^~
   include/kunit/test.h:917:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
 917 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
 | ^~~
   drivers/gpu/drm/tests/drm_fixp_test.c:11:9: note: in expansion of macro 
'KUNIT_EXPECT_EQ'
  11 | KUNIT_EXPECT_EQ(test, 0x7fffll, ((1LL << 63) - 
1));
 | ^~~
   cc1: all warnings being treated as errors


vim +11 drivers/gpu/drm/tests/drm_fixp_test.c

 8  
 9  static void drm_test_sm2fixp(struct kunit *test)
10  {
  > 11  KUNIT_EXPECT_EQ(test, 0x7fffll, ((1LL << 63) - 1));
12  
13  /* 1 */
14  KUNIT_EXPECT_EQ(test, drm_int2fixp(1), drm_sm2fixp(1ull << 
DRM_FIXED_POINT));
15  
16  /* -1 */
17  KUNIT_EXPECT_EQ(test, drm_int2fixp(-1), drm_sm2fixp((1ull << 
63) | (1ull << DRM_FIXED_POINT)));
18  
19  /* 0.5 */
20  KUNIT_EXPECT_EQ(test, drm_fixp_from_fraction(1, 2), 
drm_sm2fixp(1ull << (DRM_FIXED_POINT - 1)));
21  
22  /* -0.5 */
23  KUNIT_EXPECT_EQ(test, drm_fixp_from_fraction(-1, 2), 
drm_sm2fixp((1ull << 63) | (1ull << (DRM_FIXED_POINT - 1;
24  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


Re: [PATCH v5 36/44] drm/amd/display: add 3x4 matrix colorop

2024-08-21 Thread kernel test robot
Hi Harry,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm/drm-next]
[also build test ERROR on drm-exynos/exynos-drm-next drm-intel/for-linux-next 
drm-intel/for-linux-next-fixes drm-misc/drm-misc-next drm-tip/drm-tip 
linus/master v6.11-rc4 next-20240821]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Harry-Wentland/drm-Add-helper-for-conversion-from-signed-magnitude/20240820-050138
base:   git://anongit.freedesktop.org/drm/drm drm-next
patch link:
https://lore.kernel.org/r/20240819205714.316380-37-harry.wentland%40amd.com
patch subject: [PATCH v5 36/44] drm/amd/display: add 3x4 matrix colorop
config: parisc-randconfig-001-20240821 
(https://download.01.org/0day-ci/archive/20240821/202408211502.ev7fxurd-...@intel.com/config)
compiler: hppa-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20240821/202408211502.ev7fxurd-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202408211502.ev7fxurd-...@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/device.h:15,
from include/drm/drm_print.h:31,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_ring.h:29,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_ctx.h:29,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:43,
from 
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:25:
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c: In 
function '__set_dm_plane_colorop_3x4_matrix':
>> drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:41:22: error: format '%ld' 
>> expects argument of type 'long int', but argument 3 has type 'size_t' {aka 
>> 'unsigned int'} [-Werror=format=]
  41 | #define dev_fmt(fmt) "amdgpu: " fmt
 |  ^~
   include/linux/dev_printk.h:110:30: note: in definition of macro 
'dev_printk_index_wrap'
 110 | _p_func(dev, fmt, ##__VA_ARGS__);
   \
 |  ^~~
   include/linux/dev_printk.h:156:61: note: in expansion of macro 'dev_fmt'
 156 | dev_printk_index_wrap(_dev_warn, KERN_WARNING, dev, 
dev_fmt(fmt), ##__VA_ARGS__)
 | ^~~
   include/drm/drm_print.h:470:9: note: in expansion of macro 'dev_warn'
 470 | dev_##level##type((drm) ? (drm)->dev : NULL, "[drm] " fmt, 
##__VA_ARGS__)
 | ^~~~
   include/drm/drm_print.h:480:9: note: in expansion of macro '__drm_printk'
 480 | __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
 | ^~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:1247:25: 
note: in expansion of macro 'drm_warn'
1247 | drm_warn(dev, "blob->length (%ld) isn't 
equal to drm_color_ctm_3x4 (%ld)\n",
 | ^~~~
>> drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:41:22: error: format '%ld' 
>> expects argument of type 'long int', but argument 4 has type 'unsigned int' 
>> [-Werror=format=]
  41 | #define dev_fmt(fmt) "amdgpu: " fmt
 |  ^~
   include/linux/dev_printk.h:110:30: note: in definition of macro 
'dev_printk_index_wrap'
 110 | _p_func(dev, fmt, ##__VA_ARGS__);
   \
 |  ^~~
   include/linux/dev_printk.h:156:61: note: in expansion of macro 'dev_fmt'
 156 | dev_printk_index_wrap(_dev_warn, KERN_WARNING, dev, 
dev_fmt(fmt), ##__VA_ARGS__)
 | ^~~
   include/drm/drm_print.h:470:9: note: in expansion of macro 'dev_warn'
 470 | dev_##level##type((drm) ? (drm)->dev : NULL, "[drm] " fmt, 
##__VA_ARGS__)
 | ^~~~
   include/drm/drm_print.h:480:9: note: in expansion of macro '__drm_printk'
 480 | __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
 | ^~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:1247:25: 
note: in expansion of macro 'drm_warn'
1247 | drm_warn(dev, "b

Re: [PATCH v5 28/44] drm/amd/display: Add support for sRGB Inverse EOTF in SHAPER block

2024-08-21 Thread kernel test robot
Hi Harry,

kernel test robot noticed the following build warnings:

[auto build test WARNING on drm/drm-next]
[also build test WARNING on drm-exynos/exynos-drm-next drm-intel/for-linux-next 
drm-intel/for-linux-next-fixes drm-misc/drm-misc-next drm-tip/drm-tip 
linus/master v6.11-rc4 next-20240820]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Harry-Wentland/drm-Add-helper-for-conversion-from-signed-magnitude/20240820-050138
base:   git://anongit.freedesktop.org/drm/drm drm-next
patch link:
https://lore.kernel.org/r/20240819205714.316380-29-harry.wentland%40amd.com
patch subject: [PATCH v5 28/44] drm/amd/display: Add support for sRGB Inverse 
EOTF in SHAPER block
config: x86_64-randconfig-003-20240821 
(https://download.01.org/0day-ci/archive/20240821/202408211241.xavubshv-...@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 
617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20240821/202408211241.xavubshv-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202408211241.xavubshv-...@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:1232:42: 
>> warning: variable 'shaper_size' is uninitialized when used here 
>> [-Wuninitialized]
1232 | return __set_output_tf(tf, shaper_lut, shaper_size, 
false);
 |^~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:1214:22: 
note: initialize the variable 'shaper_size' to silence this warning
1214 | uint32_t shaper_size;
 | ^
 |  = 0
   1 warning generated.


vim +/shaper_size +1232 
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c

  1205  
  1206  static int
  1207  __set_colorop_in_shaper_1d_curve(struct dc_plane_state *dc_plane_state,
  1208 struct drm_colorop_state *colorop_state)
  1209  {
  1210  struct dc_transfer_func *tf = &dc_plane_state->in_shaper_func;
  1211  struct drm_colorop *colorop = colorop_state->colorop;
  1212  struct drm_device *drm = colorop->dev;
  1213  const struct drm_color_lut *shaper_lut;
  1214  uint32_t shaper_size;
  1215  
  1216  if (colorop->type != DRM_COLOROP_1D_CURVE &&
  1217  colorop_state->curve_1d_type != 
DRM_COLOROP_1D_CURVE_SRGB_INV_EOTF)
  1218  return -EINVAL;
  1219  
  1220  if (colorop_state->bypass) {
  1221  tf->type = TF_TYPE_BYPASS;
  1222  tf->tf = TRANSFER_FUNCTION_LINEAR;
  1223  return 0;
  1224  }
  1225  
  1226  drm_dbg(drm, "Shaper colorop with ID: %d\n", colorop->base.id);
  1227  
  1228  if (colorop->type == DRM_COLOROP_1D_CURVE) {
  1229  tf->type = TF_TYPE_DISTRIBUTED_POINTS;
  1230  tf->tf = 
amdgpu_colorop_tf_to_dc_tf(colorop_state->curve_1d_type);
  1231  tf->sdr_ref_white_level = SDR_WHITE_LEVEL_INIT_VALUE;
> 1232  return __set_output_tf(tf, shaper_lut, shaper_size, 
> false);
  1233  }
  1234  
  1235  return -EINVAL;
  1236  }
  1237  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


Re: [PATCH v5 36/44] drm/amd/display: add 3x4 matrix colorop

2024-08-21 Thread kernel test robot
Hi Harry,

kernel test robot noticed the following build warnings:

[auto build test WARNING on drm/drm-next]
[also build test WARNING on drm-intel/for-linux-next 
drm-intel/for-linux-next-fixes drm-misc/drm-misc-next drm-tip/drm-tip 
linus/master v6.11-rc4 next-20240820]
[cannot apply to drm-exynos/exynos-drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Harry-Wentland/drm-Add-helper-for-conversion-from-signed-magnitude/20240820-050138
base:   git://anongit.freedesktop.org/drm/drm drm-next
patch link:
https://lore.kernel.org/r/20240819205714.316380-37-harry.wentland%40amd.com
patch subject: [PATCH v5 36/44] drm/amd/display: add 3x4 matrix colorop
config: arm-randconfig-002-20240821 
(https://download.01.org/0day-ci/archive/20240821/202408211016.tkund7h3-...@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20240821/202408211016.tkund7h3-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202408211016.tkund7h3-...@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/linux/device.h:15,
from include/drm/drm_print.h:31,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_ring.h:29,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_ctx.h:29,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:43,
from 
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:25:
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c: In 
function '__set_dm_plane_colorop_3x4_matrix':
>> drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:41:22: warning: format '%ld' 
>> expects argument of type 'long int', but argument 3 has type 'size_t' {aka 
>> 'unsigned int'} [-Wformat=]
  41 | #define dev_fmt(fmt) "amdgpu: " fmt
 |  ^~
   include/linux/dev_printk.h:110:30: note: in definition of macro 
'dev_printk_index_wrap'
 110 | _p_func(dev, fmt, ##__VA_ARGS__);
   \
 |  ^~~
   include/linux/dev_printk.h:156:61: note: in expansion of macro 'dev_fmt'
 156 | dev_printk_index_wrap(_dev_warn, KERN_WARNING, dev, 
dev_fmt(fmt), ##__VA_ARGS__)
 | ^~~
   include/drm/drm_print.h:470:9: note: in expansion of macro 'dev_warn'
 470 | dev_##level##type((drm) ? (drm)->dev : NULL, "[drm] " fmt, 
##__VA_ARGS__)
 | ^~~~
   include/drm/drm_print.h:480:9: note: in expansion of macro '__drm_printk'
 480 | __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
 | ^~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:1247:25: 
note: in expansion of macro 'drm_warn'
1247 | drm_warn(dev, "blob->length (%ld) isn't 
equal to drm_color_ctm_3x4 (%ld)\n",
 | ^~~~
>> drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:41:22: warning: format '%ld' 
>> expects argument of type 'long int', but argument 4 has type 'unsigned int' 
>> [-Wformat=]
  41 | #define dev_fmt(fmt) "amdgpu: " fmt
 |  ^~
   include/linux/dev_printk.h:110:30: note: in definition of macro 
'dev_printk_index_wrap'
 110 | _p_func(dev, fmt, ##__VA_ARGS__);
   \
 |  ^~~
   include/linux/dev_printk.h:156:61: note: in expansion of macro 'dev_fmt'
 156 | dev_printk_index_wrap(_dev_warn, KERN_WARNING, dev, 
dev_fmt(fmt), ##__VA_ARGS__)
 | ^~~
   include/drm/drm_print.h:470:9: note: in expansion of macro 'dev_warn'
 470 | dev_##level##type((drm) ? (drm)->dev : NULL, "[drm] " fmt, 
##__VA_ARGS__)
 | ^~~~
   include/drm/drm_print.h:480:9: note: in expansion of macro '__drm_printk'
 480 | __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
 | ^~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:1247:25: 
note: in expansion of macro 'drm_warn'
1247 |

Re: [PATCH v5 20/44] drm/tests: Add a few tests around drm_fixed.h

2024-08-22 Thread kernel test robot
Hi Harry,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm/drm-next]
[also build test ERROR on drm-exynos/exynos-drm-next drm-intel/for-linux-next 
drm-intel/for-linux-next-fixes drm-misc/drm-misc-next drm-tip/drm-tip 
linus/master v6.11-rc4 next-20240822]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Harry-Wentland/drm-Add-helper-for-conversion-from-signed-magnitude/20240820-050138
base:   git://anongit.freedesktop.org/drm/drm drm-next
patch link:
https://lore.kernel.org/r/20240819205714.316380-21-harry.wentland%40amd.com
patch subject: [PATCH v5 20/44] drm/tests: Add a few tests around drm_fixed.h
config: um-randconfig-r123-20240821 
(https://download.01.org/0day-ci/archive/20240822/20240809.vpdzqng3-...@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 
26670e7fa4f032a019d23d56c6a02926e854e8af)
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20240822/20240809.vpdzqng3-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/20240809.vpdzqng3-...@intel.com/

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/tests/drm_fixp_test.c:11:59: error: overflow in expression; 
>> result is 9'223'372'036'854'775'807 with type 'long long' 
>> [-Werror,-Winteger-overflow]
  11 | KUNIT_EXPECT_EQ(test, 0x7fffll, ((1LL << 63) - 
1));
 |  ^~~
   include/kunit/test.h:917:34: note: expanded from macro 'KUNIT_EXPECT_EQ'
 917 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
 | ^
   include/kunit/test.h:922:18: note: expanded from macro 'KUNIT_EXPECT_EQ_MSG'
 922 |left, ==, right,  
  \
 |  ^
   include/kunit/test.h:758:19: note: expanded from macro 
'KUNIT_BINARY_INT_ASSERTION'
 758 | left, op, right, 
  \
 |   ^
   include/kunit/test.h:725:33: note: expanded from macro 
'KUNIT_BASE_BINARY_ASSERTION'
 725 | const typeof(right) __right = (right);   
  \
 |^
   1 error generated.


vim +11 drivers/gpu/drm/tests/drm_fixp_test.c

 8  
 9  static void drm_test_sm2fixp(struct kunit *test)
10  {
  > 11  KUNIT_EXPECT_EQ(test, 0x7fffll, ((1LL << 63) - 1));
12  
13  /* 1 */
14  KUNIT_EXPECT_EQ(test, drm_int2fixp(1), drm_sm2fixp(1ull << 
DRM_FIXED_POINT));
15  
16  /* -1 */
17  KUNIT_EXPECT_EQ(test, drm_int2fixp(-1), drm_sm2fixp((1ull << 
63) | (1ull << DRM_FIXED_POINT)));
18  
19  /* 0.5 */
20  KUNIT_EXPECT_EQ(test, drm_fixp_from_fraction(1, 2), 
drm_sm2fixp(1ull << (DRM_FIXED_POINT - 1)));
21  
22  /* -0.5 */
23  KUNIT_EXPECT_EQ(test, drm_fixp_from_fraction(-1, 2), 
drm_sm2fixp((1ull << 63) | (1ull << (DRM_FIXED_POINT - 1;
24  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


Re: [PATCH v6 21/44] drm/vkms: Add tests for CTM handling

2024-10-05 Thread kernel test robot
Hi Harry,

kernel test robot noticed the following build warnings:

[auto build test WARNING on drm/drm-next]
[also build test WARNING on drm-exynos/exynos-drm-next drm-intel/for-linux-next 
drm-intel/for-linux-next-fixes drm-misc/drm-misc-next drm-tip/drm-tip 
linus/master v6.12-rc1 next-20241004]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Harry-Wentland/drm-Add-helper-for-conversion-from-signed-magnitude/20241004-040629
base:   git://anongit.freedesktop.org/drm/drm drm-next
patch link:
https://lore.kernel.org/r/20241003200129.1732122-22-harry.wentland%40amd.com
patch subject: [PATCH v6 21/44] drm/vkms: Add tests for CTM handling
config: csky-randconfig-r112-20241005 
(https://download.01.org/0day-ci/archive/20241005/202410051850.cgjobkkg-...@intel.com/config)
compiler: csky-linux-gcc (GCC) 14.1.0
reproduce: 
(https://download.01.org/0day-ci/archive/20241005/202410051850.cgjobkkg-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202410051850.cgjobkkg-...@intel.com/

sparse warnings: (new ones prefixed by >>)
   drivers/gpu/drm/vkms/tests/vkms_color_test.c:34:29: sparse: sparse: symbol 
'test_linear_lut' was not declared. Should it be static?
>> drivers/gpu/drm/vkms/tests/vkms_color_test.c:193:32: sparse: sparse: symbol 
>> 'test_matrix_3x4_50_desat' was not declared. Should it be static?
>> drivers/gpu/drm/vkms/tests/vkms_color_test.c:259:32: sparse: sparse: symbol 
>> 'test_matrix_3x4_bt709_enc' was not declared. Should it be static?

vim +/test_matrix_3x4_50_desat +193 drivers/gpu/drm/vkms/tests/vkms_color_test.c

   192  
 > 193  const struct drm_color_ctm_3x4 test_matrix_3x4_50_desat = { {
   194  FIXPT_HALF, FIXPT_QUARTER, FIXPT_QUARTER, 0,
   195  FIXPT_QUARTER, FIXPT_HALF, FIXPT_QUARTER, 0,
   196  FIXPT_QUARTER, FIXPT_QUARTER, FIXPT_HALF, 0
   197  } };
   198  
   199  static void vkms_color_ctm_3x4_50_desat(struct kunit *test)
   200  {
   201  struct pixel_argb_s32 ref, out;
   202  
   203  /* full white */
   204  ref.a = 0x;
   205  ref.r = 0x;
   206  ref.g = 0x;
   207  ref.b = 0x;
   208  
   209  memcpy(&out, &ref, sizeof(out));
   210  apply_3x4_matrix(&out, &test_matrix_3x4_50_desat);
   211  
   212  KUNIT_EXPECT_MEMEQ(test, &ref, &out, sizeof(out));
   213  
   214  /* full black */
   215  ref.a = 0x;
   216  ref.r = 0x0;
   217  ref.g = 0x0;
   218  ref.b = 0x0;
   219  
   220  memcpy(&out, &ref, sizeof(out));
   221  apply_3x4_matrix(&out, &test_matrix_3x4_50_desat);
   222  
   223  KUNIT_EXPECT_MEMEQ(test, &ref, &out, sizeof(out));
   224  
   225  /* 50% grey */
   226  ref.a = 0x;
   227  ref.r = 0x8000;
   228  ref.g = 0x8000;
   229  ref.b = 0x8000;
   230  
   231  memcpy(&out, &ref, sizeof(out));
   232  apply_3x4_matrix(&out, &test_matrix_3x4_50_desat);
   233  
   234  KUNIT_EXPECT_MEMEQ(test, &ref, &out, sizeof(out));
   235  
   236  /* full red to 50% desat */
   237  ref.a = 0x;
   238  ref.r = 0x8000;
   239  ref.g = 0x4000;
   240  ref.b = 0x4000;
   241  
   242  out.a = 0x;
   243  out.r = 0x;
   244  out.g = 0x0;
   245  out.b = 0x0;
   246  
   247  apply_3x4_matrix(&out, &test_matrix_3x4_50_desat);
   248  
   249  KUNIT_EXPECT_MEMEQ(test, &ref, &out, sizeof(out));
   250  }
   251  
   252  /*
   253   * BT.709 encoding matrix
   254   *
   255   * Values printed from within IGT when converting
   256   * igt_matrix_3x4_bt709_enc to the fixed-point format expected
   257   * by DRM/KMS.
   258   */
 > 259  const struct drm_color_ctm_3x4 test_matrix_3x4_bt709_enc = { {
   260  0x366cf400ull, 0xb7175900ull, 
0x000127bb300ull, 0,
   261  0x80001993b3a0ull, 0x80005609fe80ull, 
0x6f9db200ull, 0,
   262  0x9d70a400ull, 0x80008f011100ull, 
0x8e6f9330ull, 0
   263  } };
   264  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


Re: [PATCH v6 36/44] drm/amd/display: add 3x4 matrix colorop

2024-10-05 Thread kernel test robot
Hi Harry,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm/drm-next]
[also build test ERROR on drm-exynos/exynos-drm-next drm-intel/for-linux-next 
drm-intel/for-linux-next-fixes drm-misc/drm-misc-next drm-tip/drm-tip 
linus/master v6.12-rc1 next-20241004]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Harry-Wentland/drm-Add-helper-for-conversion-from-signed-magnitude/20241004-040629
base:   git://anongit.freedesktop.org/drm/drm drm-next
patch link:
https://lore.kernel.org/r/20241003200129.1732122-37-harry.wentland%40amd.com
patch subject: [PATCH v6 36/44] drm/amd/display: add 3x4 matrix colorop
config: i386-randconfig-063-20241005 
(https://download.01.org/0day-ci/archive/20241005/202410051812.tvvprkdr-...@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20241005/202410051812.tvvprkdr-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202410051812.tvvprkdr-...@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/device.h:15,
from include/drm/drm_print.h:31,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_ring.h:29,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_ctx.h:29,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:43,
from 
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:25:
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c: In 
function '__set_dm_plane_colorop_3x4_matrix':
>> drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:41:22: error: format '%lu' 
>> expects argument of type 'long unsigned int', but argument 3 has type 
>> 'size_t' {aka 'unsigned int'} [-Werror=format=]
  41 | #define dev_fmt(fmt) "amdgpu: " fmt
 |  ^~
   include/linux/dev_printk.h:110:30: note: in definition of macro 
'dev_printk_index_wrap'
 110 | _p_func(dev, fmt, ##__VA_ARGS__);
   \
 |  ^~~
   include/linux/dev_printk.h:156:61: note: in expansion of macro 'dev_fmt'
 156 | dev_printk_index_wrap(_dev_warn, KERN_WARNING, dev, 
dev_fmt(fmt), ##__VA_ARGS__)
 | ^~~
   include/drm/drm_print.h:522:9: note: in expansion of macro 'dev_warn'
 522 | dev_##level##type((drm) ? (drm)->dev : NULL, "[drm] " fmt, 
##__VA_ARGS__)
 | ^~~~
   include/drm/drm_print.h:532:9: note: in expansion of macro '__drm_printk'
 532 | __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
 | ^~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:1247:25: 
note: in expansion of macro 'drm_warn'
1247 | drm_warn(dev, "blob->length (%lu) isn't 
equal to drm_color_ctm_3x4 (%lu)\n",
 | ^~~~
>> drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:41:22: error: format '%lu' 
>> expects argument of type 'long unsigned int', but argument 4 has type 
>> 'unsigned int' [-Werror=format=]
  41 | #define dev_fmt(fmt) "amdgpu: " fmt
 |  ^~
   include/linux/dev_printk.h:110:30: note: in definition of macro 
'dev_printk_index_wrap'
 110 | _p_func(dev, fmt, ##__VA_ARGS__);
   \
 |  ^~~
   include/linux/dev_printk.h:156:61: note: in expansion of macro 'dev_fmt'
 156 | dev_printk_index_wrap(_dev_warn, KERN_WARNING, dev, 
dev_fmt(fmt), ##__VA_ARGS__)
 | ^~~
   include/drm/drm_print.h:522:9: note: in expansion of macro 'dev_warn'
 522 | dev_##level##type((drm) ? (drm)->dev : NULL, "[drm] " fmt, 
##__VA_ARGS__)
 | ^~~~
   include/drm/drm_print.h:532:9: note: in expansion of macro '__drm_printk'
 532 | __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
 | ^~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:1247:25: 
note: in expansion of macro 'drm_warn'
1247 | d

Re: [PATCH v6 03/44] drm/vkms: Add kunit tests for VKMS LUT handling

2024-10-05 Thread kernel test robot
Hi Harry,

kernel test robot noticed the following build warnings:

[auto build test WARNING on drm/drm-next]
[also build test WARNING on drm-exynos/exynos-drm-next drm-intel/for-linux-next 
drm-intel/for-linux-next-fixes drm-misc/drm-misc-next drm-tip/drm-tip 
linus/master v6.12-rc1 next-20241004]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Harry-Wentland/drm-Add-helper-for-conversion-from-signed-magnitude/20241004-040629
base:   git://anongit.freedesktop.org/drm/drm drm-next
patch link:
https://lore.kernel.org/r/20241003200129.1732122-4-harry.wentland%40amd.com
patch subject: [PATCH v6 03/44] drm/vkms: Add kunit tests for VKMS LUT handling
config: csky-randconfig-r112-20241005 
(https://download.01.org/0day-ci/archive/20241005/202410051655.9wef2chw-...@intel.com/config)
compiler: csky-linux-gcc (GCC) 14.1.0
reproduce: 
(https://download.01.org/0day-ci/archive/20241005/202410051655.9wef2chw-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202410051655.9wef2chw-...@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/vkms/tests/vkms_color_test.c:33:29: sparse: sparse: symbol 
>> 'test_linear_lut' was not declared. Should it be static?

vim +/test_linear_lut +33 drivers/gpu/drm/vkms/tests/vkms_color_test.c

32  
  > 33  const struct vkms_color_lut test_linear_lut = {
34  .base = test_linear_array,
35  .lut_length = TEST_LUT_SIZE,
36  .channel_value2index_ratio = 0xf000fll
37  };
38  
39  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


Re: [PATCH v6 15/44] drm/vkms: Add kunit tests for linear and sRGB LUTs

2024-10-04 Thread kernel test robot
Hi Harry,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm/drm-next]
[also build test ERROR on drm-exynos/exynos-drm-next drm-misc/drm-misc-next 
linus/master v6.12-rc1 next-20241004]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Harry-Wentland/drm-Add-helper-for-conversion-from-signed-magnitude/20241004-040629
base:   git://anongit.freedesktop.org/drm/drm drm-next
patch link:
https://lore.kernel.org/r/20241003200129.1732122-16-harry.wentland%40amd.com
patch subject: [PATCH v6 15/44] drm/vkms: Add kunit tests for linear and sRGB 
LUTs
config: x86_64-randconfig-101-20241005 
(https://download.01.org/0day-ci/archive/20241005/202410051303.vy1ejqpj-...@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 
3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20241005/202410051303.vy1ejqpj-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202410051303.vy1ejqpj-...@intel.com/

All errors (new ones prefixed by >>, old ones prefixed by <<):

WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/gpu/drm/vkms/tests/vkms_color_test.o
>> ERROR: modpost: "srgb_eotf" [drivers/gpu/drm/vkms/tests/vkms_color_test.ko] 
>> undefined!
>> ERROR: modpost: "srgb_inv_eotf" 
>> [drivers/gpu/drm/vkms/tests/vkms_color_test.ko] undefined!
>> ERROR: modpost: "linear_eotf" 
>> [drivers/gpu/drm/vkms/tests/vkms_color_test.ko] undefined!

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


Re: [PATCH v6 29/44] drm/amd/display: Add support for sRGB EOTF in BLND block

2024-10-05 Thread kernel test robot
Hi Harry,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm/drm-next]
[also build test ERROR on drm-exynos/exynos-drm-next drm-intel/for-linux-next 
drm-intel/for-linux-next-fixes drm-misc/drm-misc-next drm-tip/drm-tip 
linus/master v6.12-rc1 next-20241004]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Harry-Wentland/drm-Add-helper-for-conversion-from-signed-magnitude/20241004-040629
base:   git://anongit.freedesktop.org/drm/drm drm-next
patch link:
https://lore.kernel.org/r/20241003200129.1732122-30-harry.wentland%40amd.com
patch subject: [PATCH v6 29/44] drm/amd/display: Add support for sRGB EOTF in 
BLND block
config: x86_64-randconfig-122-20241005 
(https://download.01.org/0day-ci/archive/20241005/202410052207.g19vlhrt-...@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 
3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20241005/202410052207.g19vlhrt-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202410052207.g19vlhrt-...@intel.com/

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:1296:46: 
>> error: variable 'blend_size' is uninitialized when used here 
>> [-Werror,-Wuninitialized]
1296 | return __set_input_tf(NULL, tf, blend_lut, 
blend_size);
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:1278:21: 
note: initialize the variable 'blend_size' to silence this warning
1278 | uint32_t blend_size;
 |^
 | = 0
   1 error generated.


vim +/blend_size +1296 
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c

  1273  
  1274  struct dc_transfer_func *tf = &dc_plane_state->blend_tf;
  1275  struct drm_colorop *colorop = colorop_state->colorop;
  1276  struct drm_device *drm = colorop->dev;
  1277  const struct drm_color_lut *blend_lut;
  1278  uint32_t blend_size;
  1279  
  1280  if (colorop->type != DRM_COLOROP_1D_CURVE &&
  1281  colorop_state->curve_1d_type != 
DRM_COLOROP_1D_CURVE_SRGB_EOTF)
  1282  return -EINVAL;
  1283  
  1284  if (colorop_state->bypass) {
  1285  tf->type = TF_TYPE_BYPASS;
  1286  tf->tf = TRANSFER_FUNCTION_LINEAR;
  1287  return 0;
  1288  }
  1289  
  1290  drm_dbg(drm, "Blend colorop with ID: %d\n", colorop->base.id);
  1291  
  1292  if (colorop->type == DRM_COLOROP_1D_CURVE) {
  1293  tf->type = TF_TYPE_DISTRIBUTED_POINTS;
  1294  tf->tf = 
amdgpu_colorop_tf_to_dc_tf(colorop_state->curve_1d_type);
  1295  tf->sdr_ref_white_level = SDR_WHITE_LEVEL_INIT_VALUE;
> 1296  return __set_input_tf(NULL, tf, blend_lut, blend_size);
  1297  }
  1298  
  1299  return -EINVAL;
  1300  }
  1301  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


Re: [PATCH v6 29/44] drm/amd/display: Add support for sRGB EOTF in BLND block

2024-10-05 Thread kernel test robot
Hi Harry,

kernel test robot noticed the following build warnings:

[auto build test WARNING on drm/drm-next]
[also build test WARNING on drm-exynos/exynos-drm-next drm-misc/drm-misc-next 
linus/master v6.12-rc1 next-20241004]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Harry-Wentland/drm-Add-helper-for-conversion-from-signed-magnitude/20241004-040629
base:   git://anongit.freedesktop.org/drm/drm drm-next
patch link:
https://lore.kernel.org/r/20241003200129.1732122-30-harry.wentland%40amd.com
patch subject: [PATCH v6 29/44] drm/amd/display: Add support for sRGB EOTF in 
BLND block
config: x86_64-allyesconfig 
(https://download.01.org/0day-ci/archive/20241005/202410052046.3g21jba1-...@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 
3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20241005/202410052046.3g21jba1-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202410052046.3g21jba1-...@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:1296:46: 
>> warning: variable 'blend_size' is uninitialized when used here 
>> [-Wuninitialized]
1296 | return __set_input_tf(NULL, tf, blend_lut, 
blend_size);
 |^~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:1278:21: 
note: initialize the variable 'blend_size' to silence this warning
1278 | uint32_t blend_size;
 |^
 | = 0
   1 warning generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for MODVERSIONS
   Depends on [n]: MODULES [=y] && !COMPILE_TEST [=y]
   Selected by [y]:
   - RANDSTRUCT_FULL [=y] && (CC_HAS_RANDSTRUCT [=y] || GCC_PLUGINS [=n]) && 
MODULES [=y]


vim +/blend_size +1296 
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c

  1273  
  1274  struct dc_transfer_func *tf = &dc_plane_state->blend_tf;
  1275  struct drm_colorop *colorop = colorop_state->colorop;
  1276  struct drm_device *drm = colorop->dev;
  1277  const struct drm_color_lut *blend_lut;
  1278  uint32_t blend_size;
  1279  
  1280  if (colorop->type != DRM_COLOROP_1D_CURVE &&
  1281  colorop_state->curve_1d_type != 
DRM_COLOROP_1D_CURVE_SRGB_EOTF)
  1282  return -EINVAL;
  1283  
  1284  if (colorop_state->bypass) {
  1285  tf->type = TF_TYPE_BYPASS;
  1286  tf->tf = TRANSFER_FUNCTION_LINEAR;
  1287  return 0;
  1288  }
  1289  
  1290  drm_dbg(drm, "Blend colorop with ID: %d\n", colorop->base.id);
  1291  
  1292  if (colorop->type == DRM_COLOROP_1D_CURVE) {
  1293  tf->type = TF_TYPE_DISTRIBUTED_POINTS;
  1294  tf->tf = 
amdgpu_colorop_tf_to_dc_tf(colorop_state->curve_1d_type);
  1295  tf->sdr_ref_white_level = SDR_WHITE_LEVEL_INIT_VALUE;
> 1296  return __set_input_tf(NULL, tf, blend_lut, blend_size);
  1297  }
  1298  
  1299  return -EINVAL;
  1300  }
  1301  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


Re: [PATCH V9 35/43] drm/amd/display: add 3x4 matrix colorop

2025-05-07 Thread kernel test robot
Hi Alex,

kernel test robot noticed the following build warnings:

[auto build test WARNING on drm-exynos/exynos-drm-next]
[also build test WARNING on next-20250507]
[cannot apply to linus/master drm/drm-next drm-intel/for-linux-next 
drm-intel/for-linux-next-fixes drm-misc/drm-misc-next drm-tip/drm-tip v6.15-rc5]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Alex-Hung/drm-Add-helper-for-conversion-from-signed-magnitude/20250430-092409
base:   https://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos.git 
exynos-drm-next
patch link:
https://lore.kernel.org/r/2025043005.223996-36-alex.hung%40amd.com
patch subject: [PATCH V9 35/43] drm/amd/display: add 3x4 matrix colorop
config: parisc-randconfig-r122-20250501 
(https://download.01.org/0day-ci/archive/20250507/202505071913.rar4ocja-...@intel.com/config)
compiler: hppa-linux-gcc (GCC) 8.5.0
reproduce: 
(https://download.01.org/0day-ci/archive/20250507/202505071913.rar4ocja-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202505071913.rar4ocja-...@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/linux/device.h:15,
from include/drm/drm_print.h:31,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_ring.h:29,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_ctx.h:29,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:43,
from 
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:25:
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c: In 
function '__set_dm_plane_colorop_3x4_matrix':
>> drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:41:22: warning: format '%lu' 
>> expects argument of type 'long unsigned int', but argument 3 has type 
>> 'size_t' {aka 'const unsigned int'} [-Wformat=]
#define dev_fmt(fmt) "amdgpu: " fmt
 ^~
   include/linux/dev_printk.h:110:16: note: in definition of macro 
'dev_printk_index_wrap'
  _p_func(dev, fmt, ##__VA_ARGS__);   \
   ^~~
   include/linux/dev_printk.h:156:54: note: in expansion of macro 'dev_fmt'
 dev_printk_index_wrap(_dev_warn, KERN_WARNING, dev, dev_fmt(fmt), 
##__VA_ARGS__)
 ^~~
   include/drm/drm_print.h:595:2: note: in expansion of macro 'dev_warn'
 dev_##level##type(__drm_to_dev(drm), "[drm] " fmt, ##__VA_ARGS__)
 ^~~~
   include/drm/drm_print.h:605:2: note: in expansion of macro '__drm_printk'
 __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
 ^~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:1246:4: 
note: in expansion of macro 'drm_warn'
   drm_warn(dev, "blob->length (%lu) isn't equal to drm_color_ctm_3x4 
(%zu)\n",
   ^~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:1246:35: 
note: format string is defined here
   drm_warn(dev, "blob->length (%lu) isn't equal to drm_color_ctm_3x4 
(%zu)\n",
~~^
%u


vim +41 drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h

539489fc91ea77 Aurabindo Pillai 2020-04-08  40  
539489fc91ea77 Aurabindo Pillai 2020-04-08 @41  #define dev_fmt(fmt) "amdgpu: " 
fmt
539489fc91ea77 Aurabindo Pillai 2020-04-08  42  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


Re: [PATCH V9 15/43] drm/vkms: Add kunit tests for linear and sRGB LUTs

2025-05-07 Thread kernel test robot
Hi Alex,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm-exynos/exynos-drm-next]
[also build test ERROR on next-20250507]
[cannot apply to linus/master v6.15-rc5]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Alex-Hung/drm-Add-helper-for-conversion-from-signed-magnitude/20250430-092409
base:   https://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos.git 
exynos-drm-next
patch link:
https://lore.kernel.org/r/2025043005.223996-16-alex.hung%40amd.com
patch subject: [PATCH V9 15/43] drm/vkms: Add kunit tests for linear and sRGB 
LUTs
config: x86_64-randconfig-073-20250502 
(https://download.01.org/0day-ci/archive/20250507/202505071750.lfuxqdsh-...@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20250507/202505071750.lfuxqdsh-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202505071750.lfuxqdsh-...@intel.com/

All errors (new ones prefixed by >>, old ones prefixed by <<):

WARNING: modpost: missing MODULE_DESCRIPTION() in mm/kasan/kasan_test.o
WARNING: modpost: missing MODULE_DESCRIPTION() in lib/tests/slub_kunit.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/fpga/tests/fpga-mgr-test.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/fpga/tests/fpga-bridge-test.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/fpga/tests/fpga-region-test.o
>> ERROR: modpost: "srgb_eotf" [drivers/gpu/drm/vkms/tests/vkms_color_test.ko] 
>> undefined!
>> ERROR: modpost: "srgb_inv_eotf" 
>> [drivers/gpu/drm/vkms/tests/vkms_color_test.ko] undefined!
>> ERROR: modpost: "linear_eotf" 
>> [drivers/gpu/drm/vkms/tests/vkms_color_test.ko] undefined!

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


Re: [PATCH V10 35/46] drm/amd/display: add shaper and blend colorops for 1D Curve Custom LUT

2025-06-17 Thread kernel test robot
Hi Alex,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on v6.16-rc2]
[cannot apply to drm-exynos/exynos-drm-next drm/drm-next 
drm-intel/for-linux-next drm-intel/for-linux-next-fixes drm-misc/drm-misc-next 
drm-tip/drm-tip next-20250617]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Alex-Hung/drm-Add-helper-for-conversion-from-signed-magnitude/20250617-123027
base:   linus/master
patch link:
https://lore.kernel.org/r/20250617041746.2884343-36-alex.hung%40amd.com
patch subject: [PATCH V10 35/46] drm/amd/display: add shaper and blend colorops 
for 1D Curve Custom LUT
config: x86_64-buildonly-randconfig-006-20250618 
(https://download.01.org/0day-ci/archive/20250618/202506181213.s2kcnsrm-...@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20250618/202506181213.s2kcnsrm-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202506181213.s2kcnsrm-...@intel.com/

All warnings (new ones prefixed by >>):

>> Warning: 
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:442 Excess 
>> function parameter 'is_legacy' description in '__drm_lut_32_to_dc_gamma'

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


Re: [PATCH V10 15/46] drm/vkms: Add kunit tests for linear and sRGB LUTs

2025-06-18 Thread kernel test robot
Hi Alex,

kernel test robot noticed the following build errors:

[auto build test ERROR on linus/master]
[also build test ERROR on v6.16-rc2]
[cannot apply to drm-exynos/exynos-drm-next drm/drm-next drm-misc/drm-misc-next 
next-20250618]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Alex-Hung/drm-Add-helper-for-conversion-from-signed-magnitude/20250617-123027
base:   linus/master
patch link:
https://lore.kernel.org/r/20250617041746.2884343-16-alex.hung%40amd.com
patch subject: [PATCH V10 15/46] drm/vkms: Add kunit tests for linear and sRGB 
LUTs
config: riscv-randconfig-001-20250618 
(https://download.01.org/0day-ci/archive/20250619/202506190132.r51ujygm-...@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 
58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20250619/202506190132.r51ujygm-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202506190132.r51ujygm-...@intel.com/

All errors (new ones prefixed by >>, old ones prefixed by <<):

>> ERROR: modpost: "srgb_eotf" [drivers/gpu/drm/vkms/tests/vkms_color_test.ko] 
>> undefined!
>> ERROR: modpost: "srgb_inv_eotf" 
>> [drivers/gpu/drm/vkms/tests/vkms_color_test.ko] undefined!
>> ERROR: modpost: "linear_eotf" 
>> [drivers/gpu/drm/vkms/tests/vkms_color_test.ko] undefined!

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


Re: [PATCH V11 02/47] drm/vkms: Add kunit tests for VKMS LUT handling

2025-08-15 Thread kernel test robot
Hi Alex,

kernel test robot noticed the following build warnings:

[auto build test WARNING on drm-exynos/exynos-drm-next]
[also build test WARNING on linus/master v6.17-rc1 next-20250815]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Alex-Hung/drm-Add-helper-for-conversion-from-signed-magnitude/20250815-120435
base:   https://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos.git 
exynos-drm-next
patch link:
https://lore.kernel.org/r/20250815035047.3319284-3-alex.hung%40amd.com
patch subject: [PATCH V11 02/47] drm/vkms: Add kunit tests for VKMS LUT handling
config: x86_64-randconfig-074-20250816 
(https://download.01.org/0day-ci/archive/20250816/202508160509.6y6rzqyi-...@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20250816/202508160509.6y6rzqyi-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202508160509.6y6rzqyi-...@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/vkms/tests/vkms-kunit-tests.o: warning: objtool: file 
>> already has .orc_unwind section, skipping

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


Re: [PATCH V11 15/47] drm/vkms: Add kunit tests for linear and sRGB LUTs

2025-08-15 Thread kernel test robot
Hi Alex,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm-exynos/exynos-drm-next]
[also build test ERROR on linus/master v6.17-rc1 next-20250815]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Alex-Hung/drm-Add-helper-for-conversion-from-signed-magnitude/20250815-120435
base:   https://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos.git 
exynos-drm-next
patch link:
https://lore.kernel.org/r/20250815035047.3319284-16-alex.hung%40amd.com
patch subject: [PATCH V11 15/47] drm/vkms: Add kunit tests for linear and sRGB 
LUTs
config: arc-randconfig-001-20250816 
(https://download.01.org/0day-ci/archive/20250816/202508160408.6oo4az4x-...@intel.com/config)
compiler: arc-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20250816/202508160408.6oo4az4x-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202508160408.6oo4az4x-...@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/vkms/vkms_composer.c:15:
   drivers/gpu/drm/vkms/vkms_composer.h:21:32: warning: 'struct vkms_color_lut' 
declared inside parameter list will not be visible outside of this definition 
or declaration
s64 get_lut_index(const struct vkms_color_lut *lut, u16 channel_value);
   ^~
   drivers/gpu/drm/vkms/vkms_composer.h:22:45: warning: 'struct vkms_color_lut' 
declared inside parameter list will not be visible outside of this definition 
or declaration
u16 apply_lut_to_channel_value(const struct vkms_color_lut *lut, u16 
channel_value,
^~
   drivers/gpu/drm/vkms/vkms_composer.c:77:22: error: conflicting types for 
'get_lut_index'
VISIBLE_IF_KUNIT s64 get_lut_index(const struct vkms_color_lut *lut, u16 
channel_value)
 ^
   In file included from drivers/gpu/drm/vkms/vkms_composer.c:15:
   drivers/gpu/drm/vkms/vkms_composer.h:21:5: note: previous declaration of 
'get_lut_index' was here
s64 get_lut_index(const struct vkms_color_lut *lut, u16 channel_value);
^
   In file included from include/linux/linkage.h:7,
from include/linux/preempt.h:10,
from include/linux/spinlock.h:56,
from include/drm/drm_crtc.h:28,
from include/drm/drm_atomic.h:31,
from drivers/gpu/drm/vkms/vkms_composer.c:5:
   drivers/gpu/drm/vkms/vkms_composer.c:83:24: error: conflicting types for 
'get_lut_index'
EXPORT_SYMBOL_IF_KUNIT(get_lut_index);
   ^
   include/linux/export.h:76:21: note: in definition of macro '__EXPORT_SYMBOL'
 extern typeof(sym) sym; \
^~~
   include/kunit/visibility.h:27:44: note: in expansion of macro 
'EXPORT_SYMBOL_NS'
#define EXPORT_SYMBOL_IF_KUNIT(symbol) EXPORT_SYMBOL_NS(symbol, 
"EXPORTED_FOR_KUNIT_TESTING")
   ^~~~
   drivers/gpu/drm/vkms/vkms_composer.c:83:1: note: in expansion of macro 
'EXPORT_SYMBOL_IF_KUNIT'
EXPORT_SYMBOL_IF_KUNIT(get_lut_index);
^~
   In file included from drivers/gpu/drm/vkms/vkms_composer.c:15:
   drivers/gpu/drm/vkms/vkms_composer.h:21:5: note: previous declaration of 
'get_lut_index' was here
s64 get_lut_index(const struct vkms_color_lut *lut, u16 channel_value);
^
>> drivers/gpu/drm/vkms/vkms_composer.c:85:22: error: conflicting types for 
>> 'apply_lut_to_channel_value'
VISIBLE_IF_KUNIT u16 apply_lut_to_channel_value(const struct vkms_color_lut 
*lut, u16 channel_value,
 ^~
   In file included from drivers/gpu/drm/vkms/vkms_composer.c:15:
   drivers/gpu/drm/vkms/vkms_composer.h:22:5: note: previous declaration of 
'apply_lut_to_channel_value' was here
u16 apply_lut_to_channel_value(const struct vkms_color_lut *lut, u16 
channel_value,
^~
   In file included from include/linux/linkage.h:7,
from include/linux/preempt.h:10,
from include/linux/spinlock.h:56,
from include/drm/drm_crtc.h:28,
from include/drm/drm_atomic.h:31,
from drivers/gpu/drm/vkms/vkms_composer.c:5:
   drivers/g

Re: [PATCH V11 28/47] drm/amd/display: Add support for sRGB EOTF in BLND block

2025-08-15 Thread kernel test robot
Hi Alex,

kernel test robot noticed the following build warnings:

[auto build test WARNING on drm-exynos/exynos-drm-next]
[also build test WARNING on linus/master v6.17-rc1 next-20250815]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Alex-Hung/drm-Add-helper-for-conversion-from-signed-magnitude/20250815-120435
base:   https://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos.git 
exynos-drm-next
patch link:
https://lore.kernel.org/r/20250815035047.3319284-29-alex.hung%40amd.com
patch subject: [PATCH V11 28/47] drm/amd/display: Add support for sRGB EOTF in 
BLND block
config: arm64-randconfig-002-20250816 
(https://download.01.org/0day-ci/archive/20250816/202508161043.tvykblyz-...@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 
93d24b6b7b148c47a2fa228a4ef31524fa1d9f3f)
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20250816/202508161043.tvykblyz-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202508161043.tvykblyz-...@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:1295:35: 
>> warning: variable 'blend_lut' is uninitialized when used here 
>> [-Wuninitialized]
1295 | return __set_input_tf(NULL, tf, blend_lut, 
blend_size);
 | ^
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:1276:39: 
note: initialize the variable 'blend_lut' to silence this warning
1276 | const struct drm_color_lut *blend_lut;
 |  ^
 |   = NULL
   1 warning generated.


vim +/blend_lut +1295 
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c

  1272  
  1273  struct dc_transfer_func *tf = &dc_plane_state->blend_tf;
  1274  struct drm_colorop *colorop = colorop_state->colorop;
  1275  struct drm_device *drm = colorop->dev;
  1276  const struct drm_color_lut *blend_lut;
  1277  uint32_t blend_size = 0;
  1278  
  1279  if (colorop->type != DRM_COLOROP_1D_CURVE &&
  1280  colorop_state->curve_1d_type != 
DRM_COLOROP_1D_CURVE_SRGB_EOTF)
  1281  return -EINVAL;
  1282  
  1283  if (colorop_state->bypass) {
  1284  tf->type = TF_TYPE_BYPASS;
  1285  tf->tf = TRANSFER_FUNCTION_LINEAR;
  1286  return 0;
  1287  }
  1288  
  1289  drm_dbg(drm, "Blend colorop with ID: %d\n", colorop->base.id);
  1290  
  1291  if (colorop->type == DRM_COLOROP_1D_CURVE) {
  1292  tf->type = TF_TYPE_DISTRIBUTED_POINTS;
  1293  tf->tf = 
amdgpu_colorop_tf_to_dc_tf(colorop_state->curve_1d_type);
  1294  tf->sdr_ref_white_level = SDR_WHITE_LEVEL_INIT_VALUE;
> 1295  return __set_input_tf(NULL, tf, blend_lut, blend_size);
  1296  }
  1297  
  1298  return -EINVAL;
  1299  }
  1300  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


Re: [PATCH V11 02/47] drm/vkms: Add kunit tests for VKMS LUT handling

2025-08-15 Thread kernel test robot
Hi Alex,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm-exynos/exynos-drm-next]
[also build test ERROR on linus/master v6.17-rc1 next-20250815]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Alex-Hung/drm-Add-helper-for-conversion-from-signed-magnitude/20250815-120435
base:   https://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos.git 
exynos-drm-next
patch link:
https://lore.kernel.org/r/20250815035047.3319284-3-alex.hung%40amd.com
patch subject: [PATCH V11 02/47] drm/vkms: Add kunit tests for VKMS LUT handling
config: arc-randconfig-001-20250816 
(https://download.01.org/0day-ci/archive/20250816/202508160245.qvehx6yb-...@intel.com/config)
compiler: arc-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20250816/202508160245.qvehx6yb-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202508160245.qvehx6yb-...@intel.com/

All error/warnings (new ones prefixed by >>):

   In file included from drivers/gpu/drm/vkms/vkms_composer.c:15:
>> drivers/gpu/drm/vkms/vkms_composer.h:10:32: warning: 'struct vkms_color_lut' 
>> declared inside parameter list will not be visible outside of this 
>> definition or declaration
s64 get_lut_index(const struct vkms_color_lut *lut, u16 channel_value);
   ^~
>> drivers/gpu/drm/vkms/vkms_composer.c:76:22: error: conflicting types for 
>> 'get_lut_index'
VISIBLE_IF_KUNIT s64 get_lut_index(const struct vkms_color_lut *lut, u16 
channel_value)
 ^
   In file included from drivers/gpu/drm/vkms/vkms_composer.c:15:
   drivers/gpu/drm/vkms/vkms_composer.h:10:5: note: previous declaration of 
'get_lut_index' was here
s64 get_lut_index(const struct vkms_color_lut *lut, u16 channel_value);
^
   In file included from include/linux/linkage.h:7,
from include/linux/preempt.h:10,
from include/linux/spinlock.h:56,
from include/drm/drm_crtc.h:28,
from include/drm/drm_atomic.h:31,
from drivers/gpu/drm/vkms/vkms_composer.c:5:
   drivers/gpu/drm/vkms/vkms_composer.c:82:24: error: conflicting types for 
'get_lut_index'
EXPORT_SYMBOL_IF_KUNIT(get_lut_index);
   ^
   include/linux/export.h:76:21: note: in definition of macro '__EXPORT_SYMBOL'
 extern typeof(sym) sym; \
^~~
   include/kunit/visibility.h:27:44: note: in expansion of macro 
'EXPORT_SYMBOL_NS'
#define EXPORT_SYMBOL_IF_KUNIT(symbol) EXPORT_SYMBOL_NS(symbol, 
"EXPORTED_FOR_KUNIT_TESTING")
   ^~~~
   drivers/gpu/drm/vkms/vkms_composer.c:82:1: note: in expansion of macro 
'EXPORT_SYMBOL_IF_KUNIT'
EXPORT_SYMBOL_IF_KUNIT(get_lut_index);
^~
   In file included from drivers/gpu/drm/vkms/vkms_composer.c:15:
   drivers/gpu/drm/vkms/vkms_composer.h:10:5: note: previous declaration of 
'get_lut_index' was here
s64 get_lut_index(const struct vkms_color_lut *lut, u16 channel_value);
^


vim +/get_lut_index +76 drivers/gpu/drm/vkms/vkms_composer.c

14  
  > 15  #include "vkms_composer.h"
16  #include "vkms_drv.h"
17  
18  static u16 pre_mul_blend_channel(u16 src, u16 dst, u16 alpha)
19  {
20  u32 new_color;
21  
22  new_color = (src * 0x + dst * (0x - alpha));
23  
24  return DIV_ROUND_CLOSEST(new_color, 0x);
25  }
26  
27  /**
28   * pre_mul_alpha_blend - alpha blending equation
29   * @stage_buffer: The line with the pixels from src_plane
30   * @output_buffer: A line buffer that receives all the blends output
31   * @x_start: The start offset
32   * @pixel_count: The number of pixels to blend
33   *
34   * The pixels [@x_start;@x_start+@pixel_count) in stage_buffer are 
blended at
35   * [@x_start;@x_start+@pixel_count) in output_buffer.
36   *
37   * The current DRM assumption is that pixel color values have been 
already
38   * pre-multiplied with the alpha channel values. See more
39   * drm_plane_create_blend_mode_property(). Also, this formula assumes a
40   * completely opaque background.
41   */
42  static void pre_mul_alpha_blend(const struct line_b