[linux-next:master 7458/7726] htmldocs: ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c:663: warning: Excess function parameter 'crtc_state' description in 'amdgpu_dm_verify_lut3d_size'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   11651f8cb2e88372d4ed523d909514dc9a613ea3
commit: aba8b76baabde681ab4ff686452005d80d949345 [7458/7726] drm/amd/display: add plane shaper LUT support
reproduce: (https://download.01.org/0day-ci/archive/20231214/202312142251.hkpNUHSZ-lkp@xxxxxxxxx/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 <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312142251.hkpNUHSZ-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c:663: warning: Excess function parameter 'crtc_state' description in 'amdgpu_dm_verify_lut3d_size'
>> ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c:663: warning: Function parameter or member 'plane_state' not described in 'amdgpu_dm_verify_lut3d_size'

vim +663 ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c

   648	
   649	/**
   650	 * amdgpu_dm_verify_lut3d_size - verifies if 3D LUT is supported and if user
   651	 * shaper and 3D LUTs match the hw supported size
   652	 * @adev: amdgpu device
   653	 * @crtc_state: the DRM CRTC state
   654	 *
   655	 * Verifies if pre-blending (DPP) 3D LUT is supported by the HW (DCN 2.0 or
   656	 * newer) and if the user shaper and 3D LUTs match the supported size.
   657	 *
   658	 * Returns:
   659	 * 0 on success. -EINVAL if lut size are invalid.
   660	 */
   661	int amdgpu_dm_verify_lut3d_size(struct amdgpu_device *adev,
   662					struct drm_plane_state *plane_state)
 > 663	{
   664		struct dm_plane_state *dm_plane_state = to_dm_plane_state(plane_state);
   665		const struct drm_color_lut *shaper = NULL;
   666		uint32_t exp_size, size;
   667		bool has_3dlut = adev->dm.dc->caps.color.dpp.hw_3d_lut;
   668	
   669		/* shaper LUT is only available if 3D LUT color caps */
   670		exp_size = has_3dlut ? MAX_COLOR_LUT_ENTRIES : 0;
   671		shaper = __extract_blob_lut(dm_plane_state->shaper_lut, &size);
   672	
   673		if (shaper && size != exp_size) {
   674			drm_dbg(&adev->ddev,
   675				"Invalid Shaper LUT size. Should be %u but got %u.\n",
   676				exp_size, size);
   677			return -EINVAL;
   678		}
   679	
   680		return 0;
   681	}
   682	

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux