linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Melissa Wen <mwen@igalia.com>
Cc: oe-kbuild-all@lists.linux.dev,
	Linux Memory Management List <linux-mm@kvack.org>,
	Alex Deucher <alexander.deucher@amd.com>,
	Harry Wentland <harry.wentland@amd.com>
Subject: [linux-next:master 7458/7726] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:663: warning: Function parameter or member 'plane_state' not described in 'amdgpu_dm_verify_lut3d_size'
Date: Thu, 14 Dec 2023 22:19:00 +0800	[thread overview]
Message-ID: <202312142254.wTOoIU96-lkp@intel.com> (raw)

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
config: i386-buildonly-randconfig-004-20231214 (https://download.01.org/0day-ci/archive/20231214/202312142254.wTOoIU96-lkp@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/20231214/202312142254.wTOoIU96-lkp@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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312142254.wTOoIU96-lkp@intel.com/

All warnings (new ones prefixed by >>):

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


vim +663 drivers/gpu/drm/amd/amdgpu/../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


                 reply	other threads:[~2023-12-14 14:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202312142254.wTOoIU96-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alexander.deucher@amd.com \
    --cc=harry.wentland@amd.com \
    --cc=linux-mm@kvack.org \
    --cc=mwen@igalia.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox