All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Mario Limonciello <mario.limonciello@amd.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [superm1:superm1/brightness-changes-6.15 3/7] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:4694:13: error: 'caps' undeclared
Date: Fri, 7 Mar 2025 23:04:20 +0800	[thread overview]
Message-ID: <202503072204.9LZTFcpb-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/superm1/linux.git superm1/brightness-changes-6.15
head:   e1a5d02a5851574c4f09e3d483c473555e69a453
commit: 88e76b926b193764694367e3411d004d5db78ccb [3/7] drm/amd/display: Avoid operating on copies of backlight caps
config: sparc-allmodconfig (https://download.01.org/0day-ci/archive/20250307/202503072204.9LZTFcpb-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250307/202503072204.9LZTFcpb-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/202503072204.9LZTFcpb-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'amdgpu_dm_update_backlight_caps':
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:4694:13: error: 'caps' undeclared (first use in this function)
    4694 |         if (caps->aux_support)
         |             ^~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:4694:13: note: each undeclared identifier is reported only once for each function it appears in


vim +/caps +4694 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c

  4662	
  4663	static void amdgpu_dm_update_backlight_caps(struct amdgpu_display_manager *dm,
  4664						    int bl_idx)
  4665	{
  4666	#if defined(CONFIG_ACPI)
  4667		struct amdgpu_dm_backlight_caps *caps = &dm->backlight_caps[bl_idx];
  4668	
  4669		if (caps->caps_valid)
  4670			return;
  4671	
  4672		amdgpu_acpi_get_backlight_caps(caps);
  4673	
  4674		/* validate the firmware value is sane */
  4675		if (caps->caps_valid) {
  4676			int spread = caps->max_input_signal - caps->min_input_signal;
  4677	
  4678			if (caps->max_input_signal > AMDGPU_DM_DEFAULT_MAX_BACKLIGHT ||
  4679			    caps->min_input_signal < 0 ||
  4680			    spread > AMDGPU_DM_DEFAULT_MAX_BACKLIGHT ||
  4681			    spread < AMDGPU_DM_MIN_SPREAD) {
  4682				DRM_DEBUG_KMS("DM: Invalid backlight caps: min=%d, max=%d\n",
  4683					      caps->min_input_signal, caps->max_input_signal);
  4684				caps->caps_valid = false;
  4685			}
  4686		}
  4687	
  4688		if (!caps->caps_valid) {
  4689			caps->min_input_signal = AMDGPU_DM_DEFAULT_MIN_BACKLIGHT;
  4690			caps->max_input_signal = AMDGPU_DM_DEFAULT_MAX_BACKLIGHT;
  4691			caps->caps_valid = true;
  4692		}
  4693	#else
> 4694		if (caps->aux_support)
  4695			return;
  4696	
  4697		caps->min_input_signal = AMDGPU_DM_DEFAULT_MIN_BACKLIGHT;
  4698		caps->max_input_signal = AMDGPU_DM_DEFAULT_MAX_BACKLIGHT;
  4699		caps->caps_valid = true;
  4700	#endif
  4701	}
  4702	

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

                 reply	other threads:[~2025-03-07 15:04 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=202503072204.9LZTFcpb-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=mario.limonciello@amd.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.