Skip to contentSkip to conversation

drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_crtc.c:312: warning: expecting prototype for drm_crtc_additional_color_mgmt(). Prototype was for dm_crtc_additional_color_mgmt() instead

PATCH kernel test robot 1 participant 1 message Dec 14, 2023 Memory management

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   11651f8cb2e88372d4ed523d909514dc9a613ea3
commit: 0f5afa190b890052cae187496f660699f00067ef [7445/7726] drm/amd/display: add CRTC gamma TF driver-specific property
config: i386-buildonly-randconfig-004-20231214 (https://download.01.org/0day-ci/archive/20231214/[email protected]/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/20231214/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_crtc.c:312: warning: expecting prototype for drm_crtc_additional_color_mgmt(). Prototype was for dm_crtc_additional_color_mgmt() instead

vim +312 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_crtc.c

299
300 #ifdef AMD_PRIVATE_COLOR
301 /**
302 * drm_crtc_additional_color_mgmt - enable additional color properties
303 * @crtc: DRM CRTC
304 *
305 * This function lets the driver enable post-blending CRTC regamma transfer
306 * function property in addition to DRM CRTC gamma LUT. Default value means
307 * linear transfer function, which is the default CRTC gamma LUT behaviour
308 * without this property.
309 */
310 static void
311 dm_crtc_additional_color_mgmt(struct drm_crtc *crtc)

 > 312	{

313 struct amdgpu_device *adev = drm_to_adev(crtc->dev);
314
315 if(adev->dm.dc->caps.color.mpc.ogam_ram)
316 drm_object_attach_property(&crtc->base,
317 adev->mode_info.regamma_tf_property,
318 AMDGPU_TRANSFER_FUNCTION_DEFAULT);
319 }
320

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