* [agd5f:kq_resets 2255/2300] drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:4151:33: error: 'adev' undeclared; did you mean 'cdev'?
@ 2025-06-28 3:09 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-06-28 3:09 UTC (permalink / raw)
To: Lijo Lazar; +Cc: oe-kbuild-all, Linux Infrastructure, Asad Kamal
tree: https://gitlab.freedesktop.org/agd5f/linux.git kq_resets
head: b88b120a41a95ee7e96b836a5323414a8f75606b
commit: f408cc771c3348f93476231d15a30b33b40641c4 [2255/2300] drm/amdgpu: Convert from DRM_* to dev_*
config: csky-randconfig-002-20250628 (https://download.01.org/0day-ci/archive/20250628/202506281140.mXfWT3EN-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 14.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250628/202506281140.mXfWT3EN-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/202506281140.mXfWT3EN-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/device.h:15,
from include/linux/power_supply.h:15,
from drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:30:
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c: In function 'amdgpu_device_asic_has_dc_support':
>> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:4151:33: error: 'adev' undeclared (first use in this function); did you mean 'cdev'?
4151 | adev->dev,
| ^~~~
include/linux/dev_printk.h:110:25: note: in definition of macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ^~~
include/linux/dev_printk.h:181:17: note: in expansion of macro 'dev_info'
181 | dev_level(dev, fmt, ##__VA_ARGS__); \
| ^~~~~~~~~
include/linux/dev_printk.h:205:9: note: in expansion of macro 'dev_level_once'
205 | dev_level_once(dev_info, dev, fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:4150:25: note: in expansion of macro 'dev_info_once'
4150 | dev_info_once(
| ^~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:4151:33: note: each undeclared identifier is reported only once for each function it appears in
4151 | adev->dev,
| ^~~~
include/linux/dev_printk.h:110:25: note: in definition of macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ^~~
include/linux/dev_printk.h:181:17: note: in expansion of macro 'dev_info'
181 | dev_level(dev, fmt, ##__VA_ARGS__); \
| ^~~~~~~~~
include/linux/dev_printk.h:205:9: note: in expansion of macro 'dev_level_once'
205 | dev_level_once(dev_info, dev, fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:4150:25: note: in expansion of macro 'dev_info_once'
4150 | dev_info_once(
| ^~~~~~~~~~~~~
vim +4151 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
4098
4099 /**
4100 * amdgpu_device_asic_has_dc_support - determine if DC supports the asic
4101 *
4102 * @asic_type: AMD asic type
4103 *
4104 * Check if there is DC (new modesetting infrastructre) support for an asic.
4105 * returns true if DC has support, false if not.
4106 */
4107 bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)
4108 {
4109 switch (asic_type) {
4110 #ifdef CONFIG_DRM_AMDGPU_SI
4111 case CHIP_HAINAN:
4112 #endif
4113 case CHIP_TOPAZ:
4114 /* chips with no display hardware */
4115 return false;
4116 #if defined(CONFIG_DRM_AMD_DC)
4117 case CHIP_TAHITI:
4118 case CHIP_PITCAIRN:
4119 case CHIP_VERDE:
4120 case CHIP_OLAND:
4121 /*
4122 * We have systems in the wild with these ASICs that require
4123 * LVDS and VGA support which is not supported with DC.
4124 *
4125 * Fallback to the non-DC driver here by default so as not to
4126 * cause regressions.
4127 */
4128 #if defined(CONFIG_DRM_AMD_DC_SI)
4129 return amdgpu_dc > 0;
4130 #else
4131 return false;
4132 #endif
4133 case CHIP_BONAIRE:
4134 case CHIP_KAVERI:
4135 case CHIP_KABINI:
4136 case CHIP_MULLINS:
4137 /*
4138 * We have systems in the wild with these ASICs that require
4139 * VGA support which is not supported with DC.
4140 *
4141 * Fallback to the non-DC driver here by default so as not to
4142 * cause regressions.
4143 */
4144 return amdgpu_dc > 0;
4145 default:
4146 return amdgpu_dc != 0;
4147 #else
4148 default:
4149 if (amdgpu_dc > 0)
4150 dev_info_once(
> 4151 adev->dev,
4152 "Display Core has been requested via kernel parameter but isn't supported by ASIC, ignoring\n");
4153 return false;
4154 #endif
4155 }
4156 }
4157
--
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-06-28 3:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-28 3:09 [agd5f:kq_resets 2255/2300] drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:4151:33: error: 'adev' undeclared; did you mean 'cdev'? 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.