All of lore.kernel.org
 help / color / mirror / Atom feed
* [superm1:superm1/brightness-changes-6.15 3/7] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:4694:13: error: 'caps' undeclared
@ 2025-03-07 15:04 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-07 15:04 UTC (permalink / raw)
  To: Mario Limonciello; +Cc: oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-03-07 15:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-07 15:04 [superm1:superm1/brightness-changes-6.15 3/7] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:4694:13: error: 'caps' undeclared kernel test robot

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.