mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Mark Yacoub <markyacoub@chromium.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Alex Deucher <alexander.deucher@amd.com>,
	Harry Wentland <harry.wentland@amd.com>,
	linux-doc@vger.kernel.org
Subject: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_color.c:288: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
Date: Mon, 22 Nov 2021 12:14:45 +0800	[thread overview]
Message-ID: <202111221241.jOw64KKb-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2524 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   136057256686de39cc3a07c2e39ef6bc43003ff6
commit: 03fc4cf45d30533d54f0f4ebc02aacfa12f52ce2 drm/amd/display: Verify Gamma & Degamma LUT sizes in amdgpu_dm_atomic_check
date:   5 months ago
config: x86_64-randconfig-m001-20211109 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=03fc4cf45d30533d54f0f4ebc02aacfa12f52ce2
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 03fc4cf45d30533d54f0f4ebc02aacfa12f52ce2
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

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/amdgpu_dm/amdgpu_dm_color.c:288: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
    * Verifies that the Degamma and Gamma LUTs attached to the |crtc_state| are of


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

   286	
   287	/**
 > 288	 * Verifies that the Degamma and Gamma LUTs attached to the |crtc_state| are of
   289	 * the expected size.
   290	 * Returns 0 on success.
   291	 */
   292	int amdgpu_dm_verify_lut_sizes(const struct drm_crtc_state *crtc_state)
   293	{
   294		const struct drm_color_lut *lut = NULL;
   295		uint32_t size = 0;
   296	
   297		lut = __extract_blob_lut(crtc_state->degamma_lut, &size);
   298		if (lut && size != MAX_COLOR_LUT_ENTRIES) {
   299			DRM_DEBUG_DRIVER(
   300				"Invalid Degamma LUT size. Should be %u but got %u.\n",
   301				MAX_COLOR_LUT_ENTRIES, size);
   302			return -EINVAL;
   303		}
   304	
   305		lut = __extract_blob_lut(crtc_state->gamma_lut, &size);
   306		if (lut && size != MAX_COLOR_LUT_ENTRIES &&
   307		    size != MAX_COLOR_LEGACY_LUT_ENTRIES) {
   308			DRM_DEBUG_DRIVER(
   309				"Invalid Gamma LUT size. Should be %u (or %u for legacy) but got %u.\n",
   310				MAX_COLOR_LUT_ENTRIES, MAX_COLOR_LEGACY_LUT_ENTRIES,
   311				size);
   312			return -EINVAL;
   313		}
   314	
   315		return 0;
   316	}
   317	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 38330 bytes --]

                 reply	other threads:[~2021-11-22  4:15 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=202111221241.jOw64KKb-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alexander.deucher@amd.com \
    --cc=harry.wentland@amd.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=markyacoub@chromium.org \
    /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

all inboxes | Powered by JetHome®