* [paulmckrcu:dev.2025.03.11a 35/38] drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c:1686:38: error: assigning to 'atomic_t' from incompatible type 'int'
@ 2025-03-18 1:02 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-18 1:02 UTC (permalink / raw)
To: Paul E. McKenney; +Cc: llvm, oe-kbuild-all
tree: https://github.com/paulmckrcu/linux dev.2025.03.11a
head: f8336d73124404df2b42d757b8a2c73f70281b97
commit: 85393d1591b54e5b41e61ec6ca2f2c84bf94351d [35/38] ratelimit: Convert the ->missed field to atomic_t
config: i386-buildonly-randconfig-001-20250318 (https://download.01.org/0day-ci/archive/20250318/202503180826.EiekA1MB-lkp@intel.com/config)
compiler: clang version 20.1.0 (https://github.com/llvm/llvm-project 24a30daaa559829ad079f2ff7f73eb4e18095f88)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250318/202503180826.EiekA1MB-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/202503180826.EiekA1MB-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c:1686:38: error: assigning to 'atomic_t' from incompatible type 'int'
1686 | adev->throttling_logging_rs.missed = 0;
| ^ ~
1 error generated.
vim +1686 drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1657
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1658 static ssize_t amdgpu_set_thermal_throttling_logging(struct device *dev,
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1659 struct device_attribute *attr,
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1660 const char *buf,
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1661 size_t count)
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1662 {
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1663 struct drm_device *ddev = dev_get_drvdata(dev);
1348969ab68cb8 drivers/gpu/drm/amd/pm/amdgpu_pm.c Luben Tuikov 2020-08-24 1664 struct amdgpu_device *adev = drm_to_adev(ddev);
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1665 long throttling_logging_interval;
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1666 unsigned long flags;
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1667 int ret = 0;
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1668
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1669 ret = kstrtol(buf, 0, &throttling_logging_interval);
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1670 if (ret)
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1671 return ret;
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1672
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1673 if (throttling_logging_interval > 3600)
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1674 return -EINVAL;
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1675
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1676 if (throttling_logging_interval > 0) {
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1677 raw_spin_lock_irqsave(&adev->throttling_logging_rs.lock, flags);
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1678 /*
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1679 * Reset the ratelimit timer internals.
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1680 * This can effectively restart the timer.
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1681 */
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1682 adev->throttling_logging_rs.interval =
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1683 (throttling_logging_interval - 1) * HZ;
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1684 adev->throttling_logging_rs.begin = 0;
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1685 adev->throttling_logging_rs.printed = 0;
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 @1686 adev->throttling_logging_rs.missed = 0;
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1687 raw_spin_unlock_irqrestore(&adev->throttling_logging_rs.lock, flags);
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1688
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1689 atomic_set(&adev->throttling_logging_enabled, 1);
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1690 } else {
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1691 atomic_set(&adev->throttling_logging_enabled, 0);
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1692 }
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1693
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1694 return count;
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1695 }
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan 2020-05-22 1696
:::::: The code at line 1686 was first introduced by commit
:::::: b265bdbd9f2811c2a674ea9d1161de821923897c drm/amdgpu: added a sysfs interface for thermal throttling related V4
:::::: TO: Evan Quan <evan.quan@amd.com>
:::::: CC: Alex Deucher <alexander.deucher@amd.com>
--
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-18 1:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-18 1:02 [paulmckrcu:dev.2025.03.11a 35/38] drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c:1686:38: error: assigning to 'atomic_t' from incompatible type 'int' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox